IBinaryReader
Description
- Extended by
Base interface for classes that sequentially read data from a binary stream.
Public / Methods
Read
Reads a number of bytes from the stream.
The number of bytes that are read from the stream may be less than the number of ByteBuffer.Remaining bytes in the given ByteBuffer, for any arbitrary reason.
- IOException
-
If an I/O error has occurred.
ReadAll
Reads a number of bytes from the stream.
The number of bytes that are read from the stream will be equal to the number of ByteBuffer.Remaining bytes in the given ByteBuffer.
- IOException
-
If an I/O error has occurred.
ReadFloat32
Reads a 32-bit floating point value from the data stream.
- IOException
-
If an I/O error has occurred.
ReadFloat32s
Reads 32-bit floating point values from the data stream.
- IOException
-
If an I/O error has occurred.
ReadFloat64
Reads a 64-bit floating point value from the data stream.
- IOException
-
If an I/O error has occurred.
ReadFloat64s
Reads 64-bit floating point values from the data stream.
- IOException
-
If an I/O error has occurred.
ReadInt16
Reads a signed 16-bit integer value from the data stream using.
- IOException
-
If an I/O error has occurred.
ReadInt16s
Reads signed 16-bit integer value values from the data stream.
- IOException
-
If an I/O error has occurred.
ReadInt32
Reads a signed 32-bit integer value from the data stream.
- IOException
-
If an I/O error has occurred.
ReadInt32s
Reads signed 32-bit integer value values from the data stream.
- IOException
-
If an I/O error has occurred.
ReadInt64
Reads a signed 64-bit integer value from the data stream.
- IOException
-
If an I/O error has occurred.
ReadInt64s
Reads signed 64-bit integer value values from the data stream.
- IOException
-
If an I/O error has occurred.
ReadInt8s
Reads signed 8-bit integer value values from the data stream.
- IOException
-
If an I/O error has occurred.
ReadUInt16
Reads an unsigned 16-bit integer value from the data stream.
- IOException
-
If an I/O error has occurred.
ReadUInt32
Reads an unsigned 32-bit integer value from the data stream.
- IOException
-
If an I/O error has occurred.
ReadUInt8
Reads an unsigned 8-bit integer from the data stream.
- IOException
-
If an I/O error has occurred.
TryReadUInt8
Reads an unsigned 8-bit value from the stream.
- IOException
-
If an I/O error has occurred.
Extensions
ReadEof
Reads a number of bytes from the stream.
The number of bytes that are read from the stream will be equal to the number of ByteBuffer.Remaining bytes in the given ByteBuffer, except when the end of file is reached (the returned value will be smaller in this case).
- IOException
-
If an I/O error has occurred.