Class BoolListExtensions
Collection-related extension methods for
Inheritance
System.Object
BoolListExtensions
Namespace: X10D.Collections
Assembly: X10D.dll
Syntax
public static class BoolListExtensions : object
Methods
| Improve this Doc View SourcePackByte(IReadOnlyList<Boolean>)
Packs a collection of booleans into a
Declaration
public static byte PackByte(this IReadOnlyList<bool> source)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<System.Boolean> | source | The collection of booleans to pack. |
Returns
Type | Description |
---|---|
System.Byte | An 8-bit unsigned integer containing the packed booleans. |
PackInt16(IReadOnlyList<Boolean>)
Packs a collection of booleans into a
Declaration
public static short PackInt16(this IReadOnlyList<bool> source)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<System.Boolean> | source | The collection of booleans to pack. |
Returns
Type | Description |
---|---|
System.Int16 | A 16-bit signed integer containing the packed booleans. |
PackInt32(IReadOnlyList<Boolean>)
Packs a collection of booleans into a
Declaration
public static int PackInt32(this IReadOnlyList<bool> source)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<System.Boolean> | source | The collection of booleans to pack. |
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer containing the packed booleans. |
PackInt64(IReadOnlyList<Boolean>)
Packs a collection of booleans into a
Declaration
public static long PackInt64(this IReadOnlyList<bool> source)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<System.Boolean> | source | The collection of booleans to pack. |
Returns
Type | Description |
---|---|
System.Int64 | A 64-bit signed integer containing the packed booleans. |