class BlobInfo

Defined at line 68 of file ../../src/storage/blobfs/host.h

Merkle tree, data, and compression information associated with a file.

Public Methods

void BlobInfo (const BlobInfo & )

Defined at line 70 of file ../../src/storage/blobfs/host.h

void BlobInfo (BlobInfo && )

Defined at line 71 of file ../../src/storage/blobfs/host.h

BlobInfo & operator= (const BlobInfo & )

Defined at line 72 of file ../../src/storage/blobfs/host.h

BlobInfo & operator= (BlobInfo && )

Defined at line 73 of file ../../src/storage/blobfs/host.h

std::span<const uint8_t> GetData ()

If the blob was compressed then this function will return the compressed data. Otherwise the

uncompressed data is returned.

Defined at line 88 of file ../../src/storage/blobfs/host.h

bool IsCompressed ()

Returns true if the data returned by |GetData| is compressed.

Defined at line 91 of file ../../src/storage/blobfs/host.h

const Digest & GetDigest ()

Defined at line 93 of file ../../src/storage/blobfs/host.h

std::span<const uint8_t> GetMerkleTree ()

Defined at line 94 of file ../../src/storage/blobfs/host.h

const BlobLayout & GetBlobLayout ()

Defined at line 95 of file ../../src/storage/blobfs/host.h

const std::filesystem::path & GetSrcFilePath ()

Defined at line 96 of file ../../src/storage/blobfs/host.h

zx::result<BlobInfo> CreateCompressed (int fd, BlobLayoutFormat blob_layout_format, std::filesystem::path file_path, chunked_compression::MultithreadedChunkedCompressor & compressor)

Creates a BlobInfo object for |fd| using the layout specified by |blob_layout_format|. If

compressing the blob would save space then the blob will be compressed.

Defined at line 245 of file ../../src/storage/blobfs/host.cc

zx::result<BlobInfo> CreateUncompressed (int fd, BlobLayoutFormat blob_layout_format, std::filesystem::path file_path)

Creates a BlobInfo object for |fd| using the layout specified by |blob_layout_format|. The blob

will not be compressed.

Defined at line 283 of file ../../src/storage/blobfs/host.cc