LzoCompressor.write

void write(const(ubyte)[] data)

Feed more uncompressed data.

Data is accumulated in an internal buffer. Whenever a full LZO_BLOCK_SIZE chunk is available it is compressed and emitted. An offset into the buffer is tracked instead of slicing and duplicating the tail, which avoids a large copy on every block boundary.

Parameters

dataUncompressed data to compress.

Throws

CompressionError if finish() was already called or sink not set.