IOFileComponent.GetBits Method
Overloads
| Name | Description |
|---|---|
GetBits(Int32, Int32, Int32) |
Gets a range of bits from the byte at the specified index. |
GetBits<TEnum>(Int32, Int32, Int32) |
Gets a range of bits from the byte at the specified index as an enum value. |
GetBits(Int32, Int32, Int32)
Gets a range of bits from the byte at the specified index.
protected Byte GetBits(int index, int startInclusive, int endInclusive);
Parameters
| Name | Type | Description |
|---|---|---|
index |
Int32 |
The index of the byte. |
startInclusive |
Int32 |
The start bit index, inclusive. |
endInclusive |
Int32 |
The end bit index, inclusive. |
Returns
The extracted bits as a byte.
GetBits<TEnum>(Int32, Int32, Int32)
Gets a range of bits from the byte at the specified index as an enum value.
protected TEnum GetBits<TEnum>(int index, int startInclusive, int endInclusive)
where TEnum : struct, Enum;
Type Parameters
| Name | Description |
|---|---|
TEnum |
The enum type. |
Parameters
| Name | Type | Description |
|---|---|---|
index |
Int32 |
The index of the byte. |
startInclusive |
Int32 |
The start bit index, inclusive. |
endInclusive |
Int32 |
The end bit index, inclusive. |
Returns
TEnum
The extracted bits as an enum value.