Functions
-
uint32_t ComputeChecksum (const uint8_t * header, size_t header_length)Computes the checksum for a raw archive header.
|header_length| must be at least kChunkArchiveMinHeaderSize bytes.
Defined at line 17 of file ../../src/lib/chunked-compression/test-utils.cc
-
fbl::Array<uint8_t> CreateHeader ()Defined at line 27 of file ../../src/lib/chunked-compression/test-utils.h
-
fbl::Array<uint8_t> CreateHeader (std::initializer_list<SeekTableEntry> entries)Serializes a well formed seek table with |entries| to a buffer.
The seek table invariants are *NOT* checked. This is intentional to catch
HeaderReader::Parse bugs in the test cases.
Defined at line 29 of file ../../src/lib/chunked-compression/test-utils.cc