IDataReader Interface |
Namespace: Demo3D.IO
public interface IDataReader : IDataIO
The IDataReader type exposes the following members.
| Name | Description | |
|---|---|---|
| IsFixed |
Returns true if this is a fixed size data source.
(Inherited from IDataIO.) | |
| Length |
Returns the current length of the data.
(Inherited from IDataIO.) | |
| Position |
Returns the current position in the data.
(Inherited from IDataIO.) | |
| Remaining |
Returns the remaining data/space available. (Always 0 for an expandable buffer.)
(Inherited from IDataIO.) |
| Name | Description | |
|---|---|---|
| Advance |
Advances the current data position..
(Inherited from IDataIO.) | |
| EnsureAsync |
Ensure that the next length bytes of data is available in the packet. If there isn't enough already
available, and the packet isn't fixed, then it'll attempt to read more data into the packet.
|
| Name | Description | |
|---|---|---|
| Consume |
Returns a new data reader pointing to the next length bytes, and advances the current packet position.
Implies EnsureAsync(length).
(Defined by DataReaderExtensions.) | |
| GetString |
Reads a string from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions.) | |
| Peek |
Returns a new packet pointing to the next length bytes, but does not advance the current packet position.
Implies EnsureAsync(length).
(Defined by DataReaderExtensions.) | |
| ReadBit |
Reads a bit from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions.) | |
| ReadBoolean |
Reads a boolean from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions.) | |
| ReadByte |
Reads a byte from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions.) | |
| ReadBytes(ArraySegmentByte) | Overloaded.
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions.) | |
| ReadBytes(Int32) | Overloaded.
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions.) | |
| ReadBytes(IDataWriter, Int32) | Overloaded.
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions.) | |
| ReadBytes(ArraySegmentByte, Int32, Int32) | Overloaded.
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions.) | |
| ReadBytes(Byte, Int32, Int32) | Overloaded.
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions.) | |
| ReadChar |
Reads a character from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions.) | |
| ReadDouble |
Reads a 64bit double floating point number at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadDoubleBE |
Reads a 64bit double floating point number at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadDoubleLE |
Reads a 64bit double floating point number at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt16 |
Reads a 16bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt16BE |
Reads a 16bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt16LE |
Reads a 16bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt32 |
Reads a 32bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt32BE |
Reads a 32bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt32LE |
Reads a 32bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt64 |
Reads a 64bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt64BE |
Reads a 64bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadInt64LE |
Reads a 64bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadSByte |
Reads a signed byte from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions.) | |
| ReadSingle |
Reads a 32bit single floating point number at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadSingleBE |
Reads a 32bit single floating point number at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadSingleLE |
Reads a 32bit single floating point number at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadString |
Reads a string from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions.) | |
| ReadUInt16 |
Reads a 16bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt16BE |
Reads a 16bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt16LE |
Reads a 16bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt32 |
Reads a 32bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt32BE |
Reads a 32bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt32LE |
Reads a 32bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt64 |
Reads a 64bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt64BE |
Reads a 64bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) | |
| ReadUInt64LE |
Reads a 64bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions.) |