Unpack(ReadOnlySpan, Int32, Int32, Span) Method

Definition

Assembly Broadside.dll

Unpacks count components of a row stored at 1, 2, 4 or 8 bits into one byte each, as raw values.

public static void Unpack(ReadOnlySpan<byte> row, int storageBits, int count, Span<byte> destination)

Parameters

row
ReadOnlySpan<Byte>

The row, from its first byte.

storageBits
Int32

The storage width: 1, 2, 4 or 8 (StorageBits).

count
Int32

The number of components to unpack: width × components.

destination
Span<Byte>

At least count bytes.

Remarks

ISO 32000-2 §8.9.3: most significant bit first.