Unpack(ReadOnlySpan, Int32, Int32, Span) Method

Definition

Assembly Broadside.dll

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

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

Parameters

row
ReadOnlySpan<Byte>

The row, from its first byte.

storageBits
Int32

The storage width: 1, 2, 4, 8 or 16.

count
Int32

The number of components to unpack.

destination
Span<UInt16>

At least count values.

Remarks

ISO 32000-2 §8.9.3: 16-bit components are big-endian.