Records
-
class BlobfsCompressionTest_CompressBufferEmpty_Test -
class BlobfsCompressionTest_CompressBufferSmall_Test -
class BlobfsCompressionTest_CompressBufferlarge_Test -
class BlobfsCompressionTest_CompressNoDestBuffer_Test -
class BlobfsCompressionTest_CompressWithMerkleTree_Test -
class BlobfsCompressionTest_DisableSizeAlignment_Test -
class CompressionCliOptionStruct -
class OfflineCompressionTest_Type1EmptyBlob_Test -
class OfflineCompressionTest_Type1ShouldCompress_Test -
class OfflineCompressionTest_Type1ShouldNotCompress_Test
Functions
-
zx_status_t ValidateCliOptions (const CompressionCliOptionStruct & options)Validate command line |options| used for compressing.
Defined at line 22 of file ../../src/storage/tools/blobfs-compression/common.cc
-
zx_status_t BlobfsCompress (const uint8_t * src, size_t src_sz, uint8_t * dest_write_buf, size_t * out_compressed_size, chunked_compression::CompressionParams params, const CompressionCliOptionStruct & cli_options)Returns 0 if the compression runs successfully; otherwise non-zero values.
This method reads |src_sz| from |src|, compresses it using the compression
|params|, and then writes the compressed bytes to |dest_write_buf| and the
compressed size to |out_compressed_size|. |cli_options| will be used to
configure what information to include in the output.
|dest_write_buf| can be nullptr if wanting the final compressed size only.
However, even if |dest_write_buf| is set to nullptr, there will still be
temporary RAM consumption for storing compressed data due to current internal
compression API design.
Defined at line 63 of file ../../src/storage/tools/blobfs-compression/common.cc
-
zx::result<fbl::Array<uint8_t>> GenerateDeliveryBlob (std::span<const uint8_t> datablobfs::DeliveryBlobType type)Defined at line 112 of file ../../src/storage/tools/blobfs-compression/common.cc