unpackUint32

fnResult!(size_t, BitpackError) unpackUint32(scope const(ubyte)[] src, size_t count, ubyte width, return scope uint[] dst) @safe pure nothrow @nogc

Unpacks count 32-bit values packed at width bits (LSB-first).

Parameters

srcinput starting at the packed run (≥ packedSize bytes).
countnumber of values to extract (dst.length ≥ count).
widthbits per value, 1..32.
dstcaller-provided output buffer.

Returns

Result!(size_t, BitpackError): bytes consumed — exactly

packedSize(count, width). Failures leave dst untouched: INVALID_WIDTH, INSUFFICIENT_CAPACITY, TRUNCATED (context = bytes examined) and, after extraction, INVALID_PADDING for nonzero tail bits in the final byte.