Click or drag to resize

DataReaderExtensionsReadBit Method

Reads a bit from the current position in the buffer. The current position is advanced by 1 byte.

Namespace: Demo3D.IO
Assembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.01.00
Syntax
C#
public static bool ReadBit(
	this IDataReader reader,
	int bitNo
)

Parameters

reader  IDataReader
The data reader.
bitNo  Int32
The bit within the byte to return.

Return Value

Boolean
The value read.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also