Google is committed to advancing racial equity for Black communities. See how.

fuchsia.blobfs.internal

PROTOCOLS

DecompressorCreator

Defined in fuchsia.blobfs.internal/decompressor.fidl

Create

Takes the server end of a fifo for DecompressRangeRequest objects to handle requests and put DecopmressRangeResponse responses on. Data for requests is read from compressed_vmo and results written to decompressed_vmo.

Request

NameType
server_end handle<fifo>
compressed_vmo handle<vmo>
decompressed_vmo handle<vmo>

Response

NameType
status zx/status

STRUCTS

DecompressRequest

Defined in fuchsia.blobfs.internal/decompressor.fidl

A request sent to the decompressor.

NameTypeDescriptionDefault
decompressed Range

The bytes where the decompressed result will be placed.

No default
compressed Range

The bytes from the compressed input to extract from.

No default
algorithm CompressionAlgorithm

Algorithm to use for decompression.

No default

DecompressResponse

Defined in fuchsia.blobfs.internal/decompressor.fidl

A response from the decompressor after handling a DecompressRangeRequest.

NameTypeDescriptionDefault
size uint64

Decompressed size in bytes.

No default
status zx/status

Operation status.

No default
reserved int8[24]

Padding out to the same length as DecompressRangeRequest. Values must be zero.

No default

Range

Defined in fuchsia.blobfs.internal/decompressor.fidl

A range of bytes.

NameTypeDescriptionDefault
offset uint64

Offset in bytes from the start of the VMO.

No default
size uint64

The number of bytes starting at the offset.

No default

ENUMS

CompressionAlgorithm

Type: uint32

Defined in fuchsia.blobfs.internal/decompressor.fidl

Used to transport the Blobfs CompressionAlgorithm enum.

NameValueDescription
UNCOMPRESSED 1
LZ4 2
ZSTD 3
ZSTD_SEEKABLE 4
CHUNKED 5

For decompressing an entire chunked archive from start to finish.

CHUNKED_PARTIAL 6

Used for decompressing only part of a chunked archive.