Lz4Compressor.write

void write(const(ubyte)[] data)

Feed more uncompressed data into the compressor.

Data is buffered only until enough input is available to emit the next frame block. Completed blocks are serialized immediately, so memory usage stays bounded by roughly one target block plus append slack.

Parameters

dataUncompressed input bytes.

Throws

- CompressionError with CompressionErrorCode.CLOSED if called after

finish.

  • CompressionError with CompressionErrorCode.INVALID_INPUT if the output sink has not been set.