rle2Decode
fn
ubyte[] rle2Decode(const(ushort)[] symbols, int nInUse,
size_t maxOutput = size_t.max) @trustedDecode RLE2 to MTF indices.
Uses Appender with .put() for efficient amortized O(1) appends, avoiding repeated GC allocations from `~=` usage in tight loops.
Parameters
symbols | RLE2 encoded symbols. |
nInUse | Number of unique MTF symbols. |
Returns
MTF indices.