Lz4Decompressor.write

void write(const(ubyte)[] data)

Feed more compressed data into the decompressor.

The current implementation buffers all compressed data written via this method and, upon finish, decodes it as a single LZ4 block using lz4DecompressBlock. This matches the behaviour of Lz4Compressor, which currently emits a single LZ4 block at finish.

Parameters

dataCompressed input bytes.

Throws

- CompressionError with ErrorCode.CLOSED if called after

finish.

  • CompressionError with ErrorCode.INVALID_INPUT if the

output sink has not been set.