Skip to content

IOFileComponent.GetBit Method ​

Definition ​

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

c#
protected bool GetBit(int index, int bitIndex);

View source

Parameters ​

NameTypeDescription
indexInt32The index of the byte.
bitIndexInt32The index of the bit within the byte (0-7).

Returns ​

Boolean

true if the bit is set; false otherwise.