rle2Decode

fnubyte[] rle2Decode(const(ushort)[] symbols, int nInUse) pure @safe

Decode RLE2 to MTF indices.

Uses Appender with .put() for efficient amortized O(1) appends, avoiding repeated GC allocations from `~=` usage in tight loops.

Parameters

symbolsRLE2 encoded symbols.
nInUseNumber of unique MTF symbols.

Returns

MTF indices.