Click or drag to resize

BsonStreamAdapterReadByte Method

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
public override int ReadByte()

Return Value

Type: Int32
The unsigned byte cast to an Int32, or -1 if at the end of the stream.
NotSupportedExceptionThe stream does not support reading.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also