mirror of
				https://github.com/derrod/legendary.git
				synced 2025-11-04 10:24:49 +00:00 
			
		
		
		
	[models] Allow initializing ChunkPart values
This commit is contained in:
		
							parent
							
								
									b0f5ea15a3
								
							
						
					
					
						commit
						6cfe7a74ea
					
				| 
						 | 
				
			
			@ -602,10 +602,10 @@ class FileManifest:
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
class ChunkPart:
 | 
			
		||||
    def __init__(self):
 | 
			
		||||
        self.guid = None
 | 
			
		||||
        self.offset = 0
 | 
			
		||||
        self.size = 0
 | 
			
		||||
    def __init__(self, guid=None, offset=0, size=0):
 | 
			
		||||
        self.guid = guid
 | 
			
		||||
        self.offset = offset
 | 
			
		||||
        self.size = size
 | 
			
		||||
        # caches for things that are "expensive" to compute
 | 
			
		||||
        self._guid_str = None
 | 
			
		||||
        self._guid_num = None
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue