Records

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 * srcsize_t src_szuint8_t * dest_write_bufsize_t * out_compressed_sizechunked_compression::CompressionParams paramsconst 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