My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
T_MongoDB_Driver_IO_EndianBinaryReader  
API documentation for the EndianBinaryReader type
WikiDoc, Type
Updated Jun 8, 2010 by ee.devf...@gmail.com

Summary

Equivalent of System.IO.BinaryReader, but with either endianness, depending on the EndianBitConverter it is constructed with. No data is buffered in the reader; the client may seek within the stream at will.

Members

Methods

Constructors

Close

||Closes the reader, including the underlying stream..
EndianBinaryReader(MongoDB.Driver.Conversion.EndianBitConverter, System.IO.Stream)
EndianBinaryReader(MongoDB.Driver.Conversion.EndianBitConverter, System.IO.Stream, System.Text.Encoding)
void Close()

Dispose

||Disposes of the underlying stream.
void Dispose()

Read

||===== Returns ===== The character read, or -1 for end of stream.
int Read()

||===== Returns ===== The number of bytes actually read. This will only be less than the requested number of bytes if the end of the stream is reached.
int Read(byte buffer, int index, int count)

||===== Returns ===== The number of characters actually read. This will only be less than the requested number of characters if the end of the stream is reached.
int Read(char data, int index, int count)

Read

||===== Returns ===== The character read, or -1 for end of stream.
int Read()

||===== Returns ===== The number of bytes actually read. This will only be less than the requested number of bytes if the end of the stream is reached.
int Read(byte buffer, int index, int count)

||===== Returns ===== The number of characters actually read. This will only be less than the requested number of characters if the end of the stream is reached.
int Read(char data, int index, int count)

Read

||===== Returns ===== The character read, or -1 for end of stream.
int Read()

||===== Returns ===== The number of bytes actually read. This will only be less than the requested number of bytes if the end of the stream is reached.
int Read(byte buffer, int index, int count)

||===== Returns ===== The number of characters actually read. This will only be less than the requested number of characters if the end of the stream is reached.
int Read(char data, int index, int count)

Read7BitEncodedInt

||===== Returns ===== The 7-bit encoded integer read from the stream.
int Read7BitEncodedInt()

ReadBigEndian7BitEncodedInt

||===== Returns ===== The 7-bit encoded integer read from the stream.
int ReadBigEndian7BitEncodedInt()

ReadBoolean

||===== Returns ===== The boolean read
bool ReadBoolean()

ReadByte

||===== Returns ===== The byte read
byte ReadByte()

ReadBytes

||===== Returns ===== The bytes read
byte ReadBytes(int count)

ReadBytesOrThrow

||===== Returns ===== The bytes read
byte ReadBytesOrThrow(int count)

ReadDecimal

||===== Returns ===== The decimal value read
Decimal ReadDecimal()

ReadDouble

||===== Returns ===== The floating point value read
bool ReadDouble()

ReadInt16

||===== Returns ===== The 16-bit integer read
short ReadInt16()

ReadInt32

||===== Returns ===== The 32-bit integer read
int ReadInt32()

ReadInt64

||===== Returns ===== The 64-bit integer read
long ReadInt64()

ReadSByte

||===== Returns ===== The byte read
SByte ReadSByte()

ReadSingle

||===== Returns ===== The floating point value read
float ReadSingle()

ReadString

||===== Returns ===== The string read from the stream.
string ReadString()

ReadUInt16

||===== Returns ===== The 16-bit unsigned integer read
UInt16 ReadUInt16()

ReadUInt32

||===== Returns ===== The 32-bit unsigned integer read
UInt32 ReadUInt32()

ReadUInt64

||===== Returns ===== The 64-bit unsigned integer read
UInt64 ReadUInt64()

Seek

void Seek(int offset, SeekOrigin origin)


Sign in to add a comment
Powered by Google Project Hosting