class SeekTable
Defined at line 153 of file ../../src/lib/chunked-compression/chunked-archive.h
A parsed view of a chunked archive's seek table.
Constructed by parsing a buffer containing a raw archive (see |HeaderReader::Parse()|).
Public Methods
size_t CompressedSize ()
Returns the size of the compressed archive.
Equal to the end of the greatest frame (i.e. its offset + size).
Defined at line 18 of file ../../src/lib/chunked-compression/chunked-archive.cc
size_t SerializedHeaderSize ()
Returns the size of the serialized header (i.e. everything but the actual compressed frames).
Defined at line 32 of file ../../src/lib/chunked-compression/chunked-archive.cc
size_t DecompressedSize ()
Returns the expected size of the archive after decompression.
Equal to the end of the greatest frame (i.e. its offset + size).
Defined at line 36 of file ../../src/lib/chunked-compression/chunked-archive.cc
std::optional<size_t> EntryForCompressedOffset (size_t offset)
Lookup functions to find the entry in the seek table which covers |offset| in either the
compressed or decompressed space.
Returns the index into |SeekTable()| where the entry is stored, or std::nullopt if the
offset is not covered. (Note that there can be gaps in the *compressed* frames, but the
decompressed frames are contiguous).
Defined at line 50 of file ../../src/lib/chunked-compression/chunked-archive.cc
std::optional<size_t> EntryForDecompressedOffset (size_t offset)
Defined at line 61 of file ../../src/lib/chunked-compression/chunked-archive.cc
void SeekTable ()
Defined at line 155 of file ../../src/lib/chunked-compression/chunked-archive.h
void SeekTable (SeekTable && o)
Defined at line 156 of file ../../src/lib/chunked-compression/chunked-archive.h
SeekTable & operator= (SeekTable && o)
Defined at line 157 of file ../../src/lib/chunked-compression/chunked-archive.h
void ~SeekTable ()
Defined at line 158 of file ../../src/lib/chunked-compression/chunked-archive.h
void SeekTable (const SeekTable & )
Defined at line 159 of file ../../src/lib/chunked-compression/chunked-archive.h
SeekTable & operator= (const SeekTable & )
Defined at line 159 of file ../../src/lib/chunked-compression/chunked-archive.h
const fbl::Array<SeekTableEntry> & Entries ()
Returns a reference to the seek table of the archive.
Defined at line 162 of file ../../src/lib/chunked-compression/chunked-archive.h
Friends
class HeaderReader