DataReaderExtensions Class |
Namespace: Demo3D.IO
public static class DataReaderExtensions
The DataReaderExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| Consume |
Returns a new data reader pointing to the next length bytes, and advances the current packet position.
Implies EnsureAsync(length).
| |
| GetString |
Reads a string from the current position in the buffer.
The current position is advanced by the number of bytes read.
| |
| Peek |
Returns a new packet pointing to the next length bytes, but does not advance the current packet position.
Implies EnsureAsync(length).
| |
| ReadBit |
Reads a bit from the current position in the buffer.
The current position is advanced by 1 byte.
| |
| ReadBoolean |
Reads a boolean from the current position in the buffer.
The current position is advanced by 1 byte.
| |
| ReadByte |
Reads a byte from the current position in the buffer.
The current position is advanced by 1 byte.
| |
| ReadBytes(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.
| |
| ReadBytes(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.
| |
| ReadBytes(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.
| |
| ReadBytes(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.
| |
| ReadBytes(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.
| |
| ReadChar |
Reads a character from the current position in the buffer.
The current position is advanced by 1 byte.
| |
| ReadDouble |
Reads a 64bit double floating point number at the current position in the buffer.
| |
| ReadDoubleBE |
Reads a 64bit double floating point number at the current position in the buffer.
| |
| ReadDoubleLE |
Reads a 64bit double floating point number at the current position in the buffer.
| |
| ReadInt16 |
Reads a 16bit signed integer at the current position in the buffer.
| |
| ReadInt16BE |
Reads a 16bit signed integer at the current position in the buffer.
| |
| ReadInt16LE |
Reads a 16bit signed integer at the current position in the buffer.
| |
| ReadInt32 |
Reads a 32bit signed integer at the current position in the buffer.
| |
| ReadInt32BE |
Reads a 32bit signed integer at the current position in the buffer.
| |
| ReadInt32LE |
Reads a 32bit signed integer at the current position in the buffer.
| |
| ReadInt64 |
Reads a 64bit signed integer at the current position in the buffer.
| |
| ReadInt64BE |
Reads a 64bit signed integer at the current position in the buffer.
| |
| ReadInt64LE |
Reads a 64bit signed integer at the current position in the buffer.
| |
| ReadSByte |
Reads a signed byte from the current position in the buffer.
The current position is advanced by 1 byte.
| |
| ReadSingle |
Reads a 32bit single floating point number at the current position in the buffer.
| |
| ReadSingleBE |
Reads a 32bit single floating point number at the current position in the buffer.
| |
| ReadSingleLE |
Reads a 32bit single floating point number at the current position in the buffer.
| |
| ReadString |
Reads a string from the current position in the buffer.
The current position is advanced by the number of bytes read.
| |
| ReadUInt16 |
Reads a 16bit unsigned integer at the current position in the buffer.
| |
| ReadUInt16BE |
Reads a 16bit unsigned integer at the current position in the buffer.
| |
| ReadUInt16LE |
Reads a 16bit unsigned integer at the current position in the buffer.
| |
| ReadUInt32 |
Reads a 32bit unsigned integer at the current position in the buffer.
| |
| ReadUInt32BE |
Reads a 32bit unsigned integer at the current position in the buffer.
| |
| ReadUInt32LE |
Reads a 32bit unsigned integer at the current position in the buffer.
| |
| ReadUInt64 |
Reads a 64bit unsigned integer at the current position in the buffer.
| |
| ReadUInt64BE |
Reads a 64bit unsigned integer at the current position in the buffer.
| |
| ReadUInt64LE |
Reads a 64bit unsigned integer at the current position in the buffer.
|