packUint64

fnResult!(size_t, BitpackError) packUint64(scope const(ulong)[] values, ubyte width, return scope ubyte[] dst) @safe pure nothrow @nogc

Packs unsigned 64-bit values at width bits each (LSB-first).

Parameters

valuesthe values to pack (each must be < 2^width).
widthbits per value, 1..64.
dstcaller-provided output buffer (≥ packedSize bytes).

Returns

Result!(size_t, BitpackError): bytes written; failures as

documented on packUint32.