lz4CompressBlockGreedyCore

private fnsize_t lz4CompressBlockGreedyCore( const(ubyte) * srcPtr, size_t srcLen, ubyte * outPtr, size_t maxOut, uint * hashTblPtr, uint hashBits) nothrow @trusted @nogc

Core greedy compression loop operating entirely on raw pointers.

Uses a malloc-allocated hash table (passed as a raw uint*) to keep the hot loop completely free of GC involvement — no safepoint polls, no bounds checking, no GC scanning of the table.

Parameters

srcPtrPointer to input data.
srcLenLength of input data in bytes.
outPtrPointer to pre-allocated output buffer.
maxOutCapacity of the output buffer.
hashTblPtrRaw pointer to malloc'd hash table (filled with 0xFFFF_FFFF).
hashBitsNumber of hash bits (log2 of table size).

Returns

Number of bytes written to outPtr.