IBinaryReader
Description
- Derived from
- Extended by
Base interface for classes that sequentially read data from a binary stream.
The methods of this interface read multibyte values which are affected by byte order..
Public / Methods
ReadChar
Reads an unsigned 16-bit UTF-16 code unit from the stream.
- IOException
-
If an I/O error has occurred.
ReadChars
Reads unsigned 16-bit UTF-16 code units from the stream.
Calling this method is equivalent to calling ReadChar sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
ReadFloat32
Reads a 32-bit floating point value from the stream.
- IOException
-
If an I/O error has occurred.
ReadFloat32s
Reads 32-bit floating point values from the stream.
Calling this method is equivalent to calling ReadFloat32 sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
ReadFloat64
Reads a 64-bit floating point value from the stream.
- IOException
-
If an I/O error has occurred.
ReadFloat64s
Reads 64-bit floating point values from the stream.
Calling this method is equivalent to calling ReadFloat64 sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
ReadInt16
Reads a signed 16-bit integer value from the stream.
- IOException
-
If an I/O error has occurred.
ReadInt16s
Reads signed 16-bit integer values from the stream.
Calling this method is equivalent to calling ReadInt16 sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
ReadInt32
Reads a signed 32-bit integer value from the stream.
- IOException
-
If an I/O error has occurred.
ReadInt32s
Reads signed 32-bit integer values from the stream.
Calling this method is equivalent to calling ReadInt32 sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
ReadInt64
Reads a signed 64-bit integer value from the stream.
- IOException
-
If an I/O error has occurred.
ReadInt64s
Reads signed 64-bit integer values from the stream.
Calling this method is equivalent to calling ReadInt64 sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
ReadUInt16
Reads an unsigned 16-bit integer value from the stream.
This method is equivalent to ReadInt16, except that it applies the bitmask 0xFFFF
to the read value, before returning it. It does not choose a different binary encoding in the first place.
- IOException
-
If an I/O error has occurred.
ReadUInt32
Reads an unsigned 32-bit integer value from the stream.
This method is equivalent to ReadInt32, except that it applies the bitmask 0xFFFFFFFF
to the read value, before returning it. It does not choose a different binary encoding in the first place.
- IOException
-
If an I/O error has occurred.