Click or drag to resize

DataReaderExtensions Methods

The DataReaderExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodConsume Returns a new data reader pointing to the next length bytes, and advances the current packet position. Implies EnsureAsync(length).
Public Extension MethodGetString Reads a string from the current position in the buffer. The current position is advanced by the number of bytes read.
Public Extension MethodPeek Returns a new packet pointing to the next length bytes, but does not advance the current packet position. Implies EnsureAsync(length).
Public Extension MethodReadBit Reads a bit from the current position in the buffer. The current position is advanced by 1 byte.
Public Extension MethodReadBoolean Reads a boolean from the current position in the buffer. The current position is advanced by 1 byte.
Public Extension MethodReadByte Reads a byte from the current position in the buffer. The current position is advanced by 1 byte.
Public Extension MethodReadBytes(IDataReader, ArraySegmentByte) Reads a number of bytes from the current position in the buffer. The current position is advanced by the number of bytes read.
Public Extension MethodReadBytes(IDataReader, Int32) Reads a number of bytes from the current position in the buffer. The current position is advanced by the number of bytes read.
Public Extension MethodReadBytes(IDataReader, IDataWriter, Int32) Reads a number of bytes from the current position in the buffer. The current position is advanced by the number of bytes read.
Public Extension MethodReadBytes(IDataReader, ArraySegmentByte, Int32, Int32) Reads a number of bytes from the current position in the buffer. The current position is advanced by the number of bytes read.
Public Extension MethodReadBytes(IDataReader, Byte, Int32, Int32) Reads a number of bytes from the current position in the buffer. The current position is advanced by the number of bytes read.
Public Extension MethodReadChar Reads a character from the current position in the buffer. The current position is advanced by 1 byte.
Public Extension MethodReadDouble Reads a 64bit double floating point number at the current position in the buffer.
Public Extension MethodReadDoubleBE Reads a 64bit double floating point number at the current position in the buffer.
Public Extension MethodReadDoubleLE Reads a 64bit double floating point number at the current position in the buffer.
Public Extension MethodReadInt16 Reads a 16bit signed integer at the current position in the buffer.
Public Extension MethodReadInt16BE Reads a 16bit signed integer at the current position in the buffer.
Public Extension MethodReadInt16LE Reads a 16bit signed integer at the current position in the buffer.
Public Extension MethodReadInt32 Reads a 32bit signed integer at the current position in the buffer.
Public Extension MethodReadInt32BE Reads a 32bit signed integer at the current position in the buffer.
Public Extension MethodReadInt32LE Reads a 32bit signed integer at the current position in the buffer.
Public Extension MethodReadInt64 Reads a 64bit signed integer at the current position in the buffer.
Public Extension MethodReadInt64BE Reads a 64bit signed integer at the current position in the buffer.
Public Extension MethodReadInt64LE Reads a 64bit signed integer at the current position in the buffer.
Public Extension MethodReadSByte Reads a signed byte from the current position in the buffer. The current position is advanced by 1 byte.
Public Extension MethodReadSingle Reads a 32bit single floating point number at the current position in the buffer.
Public Extension MethodReadSingleBE Reads a 32bit single floating point number at the current position in the buffer.
Public Extension MethodReadSingleLE Reads a 32bit single floating point number at the current position in the buffer.
Public Extension MethodReadString Reads a string from the current position in the buffer. The current position is advanced by the number of bytes read.
Public Extension MethodReadUInt16 Reads a 16bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt16BE Reads a 16bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt16LE Reads a 16bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt32 Reads a 32bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt32BE Reads a 32bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt32LE Reads a 32bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt64 Reads a 64bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt64BE Reads a 64bit unsigned integer at the current position in the buffer.
Public Extension MethodReadUInt64LE Reads a 64bit unsigned integer at the current position in the buffer.
Top
See Also