Class ByteExtensions
Collection-related extension methods for
Inheritance
System.Object
ByteExtensions
Namespace: X10D.Collections
Assembly: X10D.dll
Syntax
public static class ByteExtensions : object
Methods
| Improve this Doc View SourceUnpack(Byte)
Unpacks this 8-bit unsigned integer into a boolean list, treating it as a bit field.
Declaration
public static bool[] Unpack(this byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | The value to unpack. |
Returns
Type | Description |
---|---|
System.Boolean[] | An array of |
Unpack(Byte, Span<Boolean>)
Unpacks this 8-bit unsigned integer into a boolean list, treating it as a bit field.
Declaration
public static void Unpack(this byte value, Span<bool> destination)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | The value to unpack. |
Span<System.Boolean> | destination | When this method returns, contains the unpacked booleans from |