Skip to content

IOFileComponent.SetBit Method ​

Definition ​

Sets a single bit at the specified byte and bit index.

c#
protected void SetBit(int index, int bitIndex, bool value);

View source

Parameters ​

NameTypeDescription
indexInt32The index of the byte.
bitIndexInt32The index of the bit within the byte (0-7).
valueBooleanThe value to set the bit to.