IOFileComponent.SetBits Method
Overloads
| Name | Description |
|---|---|
SetBits(Int32, Byte, Int32, Int32) | Sets a range of bits in the byte at the specified index. |
SetBits<TEnum>(Int32, TEnum, Int32, Int32) | Sets a range of bits in the byte at the specified index from an enum value. |
SetBits(Int32, Byte, Int32, Int32)
Sets a range of bits in the byte at the specified index.
c#
protected void SetBits(int index, Byte value, int startInclusive, int endInclusive);Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The index of the byte. |
value | Byte | The value to set. |
startInclusive | Int32 | The start bit index, inclusive. |
endInclusive | Int32 | The end bit index, inclusive. |
SetBits<TEnum>(Int32, TEnum, Int32, Int32)
Sets a range of bits in the byte at the specified index from an enum value.
c#
protected void SetBits<TEnum>(int index, TEnum value, 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. |
value | TEnum | The enum value to set. |
startInclusive | Int32 | The start bit index, inclusive. |
endInclusive | Int32 | The end bit index, inclusive. |