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