compressBlock

private fnubyte[] compressBlock(const(ubyte)[] src, int level)

Compress a single block using LZO1X algorithm.

This is the GC-friendly entry point that delegates to the fast pointer-based implementation (compressBlockFast) internally.

Parameters

srcSource data to compress.
levelCompression level (0-9).

Returns

Compressed data as a ubyte array.