Converts bits of byte array into an array Boolean.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static bool[] ToBoolArray(
	byte[] buffer,
	int offset,
	int bitLength
)

Parameters

buffer
Type: array< System..::.Byte >[]()[]
The array of bytes.
offset
Type: System..::.Int32
The beginning.
bitLength
Type: System..::.Int32
The bit length.

Return Value

The array of Boolean, where each item correspond to 1 bit from the byte array.

Remarks

Bits are sorted from the most-significant bit to the less-significant bit.

Exceptions

ExceptionCondition
System..::.ArgumentNullException buffer is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also