Lines Matching refs:offset

643   # These are formats and offset of just the |total_chunks| and
700 # Find the smallest offset where only "Don't care" chunks
703 offset = 0
755 offset += chunk_sz
762 if self._num_total_blocks != offset:
764 'but we saw {}'.format(self._num_total_blocks, offset))
884 def seek(self, offset):
888 offset: Offset to seek to from the beginning of the file.
890 if offset < 0:
891 raise RuntimeError("Seeking with negative offset: %d" % offset)
892 self._file_pos = offset
1215 'Q' # tree offset (bytes)
1220 'Q' # FEC offset (bytes)
1300 o.write(' FEC offset: {}\n'.format(self.fec_offset))
1856 '2Q' # offset, size (hash)
1857 '2Q' # offset, size (signature)
1858 '2Q' # offset, size (public key)
1859 '2Q' # offset, size (public key metadata)
1860 '2Q' # offset, size (descriptors)
2154 o.write('VBMeta offset: {}\n'.format(footer.vbmeta_offset))
2218 offset = 0
2220 offset = footer.vbmeta_offset
2222 image.seek(offset)
2232 # The embedded public key is in the auxiliary block at an offset.
2284 offset = 0
2286 offset = footer.vbmeta_offset
2289 image.seek(offset)
2460 # the FEC data, it's the same as the offset.
2774 # For the Auxiliary data block, descriptors are stored at offset 0,
2792 # Signature offset and size - it's stored right after the hash
3587 offset = 0
3589 offset += level_sizes[m]
3590 level_offsets.append(offset)
3687 offset = hash_level_offsets[level_num - 1] + hash_src_size - remaining
3688 data = hash_ret[offset:offset + block_size]
3703 offset = hash_level_offsets[level_num]
3704 hash_ret[offset:offset + len(level_output)] = level_output