Skip to content

IOFileComponent.SetBit Method

Definition

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

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

View source

Parameters

Name Type Description
index Int32 The index of the byte.
bitIndex Int32 The index of the bit within the byte (0-7).
value Boolean The value to set the bit to.