Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
ExitGames.IO.IBinaryReader Interface Reference

Interface for a binary reader. More...

Inheritance diagram for ExitGames.IO.IBinaryReader:
ExitGames.IO.BigEndianBinaryReader

Public Member Functions

int Read (byte[] buffer, int offset, int count)
 Reads bytes from the stream. More...
 
bool ReadBoolean ()
 Reads a boolean from the stream. More...
 
byte ReadByte ()
 Reads a byte from the stream. More...
 
byte[] ReadBytes (int length)
 Reads bytes from the stream. More...
 
char ReadChar ()
 Reads a char from the stream. More...
 
double ReadDouble ()
 Reads a double from the stream. More...
 
short ReadInt16 ()
 Reads a short from the stream. More...
 
int ReadInt32 ()
 Reads an integer from the stream. More...
 
long ReadInt64 ()
 Eeads a long from the stream. More...
 
float ReadSingle ()
 Reads an 4-byte floating point value from the stream. More...
 

Properties

Stream BaseStream [get]
 Gets the base stream. More...
 

Detailed Description

Interface for a binary reader.

Member Function Documentation

◆ Read()

int ExitGames.IO.IBinaryReader.Read ( byte[]  buffer,
int  offset,
int  count 
)

Reads bytes from the stream.

Parameters
bufferThe buffer.
offsetThe offset.
countThe count.
Returns
The read.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadBoolean()

bool ExitGames.IO.IBinaryReader.ReadBoolean ( )

Reads a boolean from the stream.

Returns
The read boolean.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadByte()

byte ExitGames.IO.IBinaryReader.ReadByte ( )

Reads a byte from the stream.

Returns
The read byte.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadBytes()

byte [] ExitGames.IO.IBinaryReader.ReadBytes ( int  length)

Reads bytes from the stream.

Parameters
lengthThe length.
Returns
A byte array.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadChar()

char ExitGames.IO.IBinaryReader.ReadChar ( )

Reads a char from the stream.

Returns
The read char.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadDouble()

double ExitGames.IO.IBinaryReader.ReadDouble ( )

Reads a double from the stream.

Returns
The read double.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadInt16()

short ExitGames.IO.IBinaryReader.ReadInt16 ( )

Reads a short from the stream.

Returns
The read short.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadInt32()

int ExitGames.IO.IBinaryReader.ReadInt32 ( )

Reads an integer from the stream.

Returns
The read integer.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadInt64()

long ExitGames.IO.IBinaryReader.ReadInt64 ( )

Eeads a long from the stream.

Returns
The read long.

Implemented in ExitGames.IO.BigEndianBinaryReader.

◆ ReadSingle()

float ExitGames.IO.IBinaryReader.ReadSingle ( )

Reads an 4-byte floating point value from the stream.

Returns
The read float.

Implemented in ExitGames.IO.BigEndianBinaryReader.

Property Documentation

◆ BaseStream

Stream ExitGames.IO.IBinaryReader.BaseStream
get

Gets the base stream.