Lz4Decompressor.write

void write(const(ubyte)[] data)

Feed more compressed data into the decompressor.

Input is parsed incrementally: as soon as a complete frame block is available, it is decoded and emitted to the output sink. Only incomplete structural tails are buffered between calls.

Parameters

dataCompressed input bytes.

Throws

- CompressionError with CompressionErrorCode.CLOSED if called after

finish.

  • CompressionError with CompressionErrorCode.INVALID_INPUT if the output sink has not been set.
  • CompressionError when malformed frame data is encountered.