Photon Server API Documentation
v5.0RC1
DataInputStreamWrapper provides functions to Read binary data from a stream. More...
Public Member Functions | |
| BigEndianBinaryReader (Stream stream) | |
| Initializes a new instance of the BigEndianBinaryReader class. More... | |
| int | Read (byte[] buffer, int offset, int count) |
| Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. More... | |
| bool | ReadBoolean () |
| Reads a Boolean value from the current stream and advances the current position of the stream by one byte. More... | |
| byte | ReadByte () |
| Reads the next byte from the current stream and advances the current position of the stream by one byte. More... | |
| byte[] | ReadBytes (int length) |
| Reads bytes. More... | |
| char | ReadChar () |
| Reads a char. More... | |
| double | ReadDouble () |
| Reads an 8-byte floating point value from the current stream and advances the current position of the stream by eight bytes. More... | |
| short | ReadInt16 () |
| Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes. More... | |
| int | ReadInt32 () |
| Reads a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes. More... | |
| long | ReadInt64 () |
| Read a long (64 bit) from the stream. More... | |
| float | ReadSingle () |
| Reads an 4-byte floating point value from the current stream and advances the current position of the stream by four bytes. More... | |
Properties | |
| Stream | BaseStream [get] |
| Gets the underlying stream of the BigEndianBinaryReader. More... | |
Properties inherited from ExitGames.IO.IBinaryReader | |
| Stream | BaseStream [get] |
| Gets the base stream. More... | |
DataInputStreamWrapper provides functions to Read binary data from a stream.
|
inline |
Initializes a new instance of the BigEndianBinaryReader class.
| stream | The stream to read from. |
| ArgumentNullException | stream is null. |
|
inline |
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
| buffer | An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. |
| offset | The zero-based byte offset in buffer at which to begin storing the data read from the current stream. |
| count | The maximum number of bytes to be read from the current stream. |
Implements ExitGames.IO.IBinaryReader.
|
inline |
Reads a Boolean value from the current stream and advances the current position of the stream by one byte.
Implements ExitGames.IO.IBinaryReader.
|
inline |
Reads the next byte from the current stream and advances the current position of the stream by one byte.
Implements ExitGames.IO.IBinaryReader.
|
inline |
Reads bytes.
| length | The length. |
Implements ExitGames.IO.IBinaryReader.
|
inline |
|
inline |
Reads an 8-byte floating point value from the current stream and advances the current position of the stream by eight bytes.
Implements ExitGames.IO.IBinaryReader.
|
inline |
Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes.
| System.ObjectDisposedException | The stream is closed. |
Implements ExitGames.IO.IBinaryReader.
|
inline |
Reads a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes.
Type: System.Int32 A 4-byte signed integer read from the current stream.
Implements ExitGames.IO.IBinaryReader.
|
inline |
|
inline |
Reads an 4-byte floating point value from the current stream and advances the current position of the stream by four bytes.
Implements ExitGames.IO.IBinaryReader.
|
get |
Gets the underlying stream of the BigEndianBinaryReader.