Lines Matching refs:payload_file
78 def ReadFromPayload(self, payload_file, hasher=None): argument
96 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
100 self.version = _ReadInt(payload_file, self._VERSION_SIZE, True,
102 self.manifest_len = _ReadInt(payload_file, self._MANIFEST_LEN_SIZE, True,
111 payload_file, self._METADATA_SIGNATURE_LEN_SIZE, True,
115 def __init__(self, payload_file, payload_file_offset=0): argument
122 self.payload_file = payload_file
142 header.ReadFromPayload(self.payload_file, self.manifest_hasher)
157 return common.Read(self.payload_file, self.header.manifest_len,
174 self.payload_file, self.header.metadata_signature_len,
191 return common.Read(self.payload_file, length,
210 self.payload_file.seek(self.payload_file_offset)
261 self.payload_file.seek(self.payload_file_offset + self.data_offset)