Skip to content

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.

protected void SetBits(int index, Byte value, int startInclusive, int endInclusive);

View source

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.

protected void SetBits<TEnum>(int index, TEnum value, int startInclusive, int endInclusive)
   where TEnum : struct, Enum;

View source

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.