Photon Server API Documentation v5.0RC1

Public Member Functions | Static Public Member Functions | Properties | List of all members
ExitGames.IO.BigEndianBinaryWriter Class Reference

Provides methods to write binary data into a stream. More...

Inheritance diagram for ExitGames.IO.BigEndianBinaryWriter:
ExitGames.IO.IBinaryWriter

Public Member Functions

 BigEndianBinaryWriter (Stream stream)
 Initializes a new instance of the BigEndianBinaryWriter class. More...
 
void WriteBoolean (bool value)
 Writes a bool to the stream. More...
 
void WriteByte (byte value)
 Writes a byte to the stream. More...
 
void WriteBytes (byte[] value)
 Write bytes to the stream. More...
 
void WriteChar (char value)
 Write a char to the stream. More...
 
void WriteDouble (double value)
 Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes. More...
 
void WriteInt16 (short value)
 Writes a short (16 bit) to the stream. More...
 
void WriteInt32 (int value)
 Writes a int (32bit) to the stream. More...
 
void WriteInt64 (long value)
 Writes a long (64 bit) to the stream. More...
 
void WriteSingle (float value)
 Writes an four-byte floating-point value to the current stream and advances the stream position by eight bytes. More...
 
void WriteUTF (string value)
 Writes a UTF8 encoded string to the stream. More...
 

Static Public Member Functions

static void WriteByte (Stream stream, byte value)
 Writes a byte to the stream. More...
 
static void WriteInt16 (Stream stream, short value)
 Writes a short to the stream. More...
 

Properties

Stream Stream [get]
 Gets the underlying stream. More...
 
- Properties inherited from ExitGames.IO.IBinaryWriter
Stream Stream [get]
 Gets the underlying stream. More...
 

Detailed Description

Provides methods to write binary data into a stream.

Constructor & Destructor Documentation

◆ BigEndianBinaryWriter()

ExitGames.IO.BigEndianBinaryWriter.BigEndianBinaryWriter ( Stream  stream)
inline

Initializes a new instance of the BigEndianBinaryWriter class.

Parameters
streamThe stream to write to.

Member Function Documentation

◆ WriteBoolean()

void ExitGames.IO.BigEndianBinaryWriter.WriteBoolean ( bool  value)
inline

Writes a bool to the stream.

Parameters
valueThe value.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteByte() [1/2]

void ExitGames.IO.BigEndianBinaryWriter.WriteByte ( byte  value)
inline

Writes a byte to the stream.

Parameters
valueThe value.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteByte() [2/2]

static void ExitGames.IO.BigEndianBinaryWriter.WriteByte ( Stream  stream,
byte  value 
)
inlinestatic

Writes a byte to the stream.

Parameters
streamThe stream.
valueThe value.

◆ WriteBytes()

void ExitGames.IO.BigEndianBinaryWriter.WriteBytes ( byte[]  value)
inline

Write bytes to the stream.

Parameters
valueThe bytes.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteChar()

void ExitGames.IO.BigEndianBinaryWriter.WriteChar ( char  value)
inline

Write a char to the stream.

Parameters
valueThe value.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteDouble()

void ExitGames.IO.BigEndianBinaryWriter.WriteDouble ( double  value)
inline

Writes an eight-byte floating-point value to the current stream and advances the stream position by eight bytes.

Parameters
valueThe eight-byte floating-point value to write.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteInt16() [1/2]

void ExitGames.IO.BigEndianBinaryWriter.WriteInt16 ( short  value)
inline

Writes a short (16 bit) to the stream.

Parameters
valueThe value.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteInt16() [2/2]

static void ExitGames.IO.BigEndianBinaryWriter.WriteInt16 ( Stream  stream,
short  value 
)
inlinestatic

Writes a short to the stream.

Parameters
streamThe stream.
valueThe value.

◆ WriteInt32()

void ExitGames.IO.BigEndianBinaryWriter.WriteInt32 ( int  value)
inline

Writes a int (32bit) to the stream.

Parameters
valueThe value.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteInt64()

void ExitGames.IO.BigEndianBinaryWriter.WriteInt64 ( long  value)
inline

Writes a long (64 bit) to the stream.

Parameters
valueThe value.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteSingle()

void ExitGames.IO.BigEndianBinaryWriter.WriteSingle ( float  value)
inline

Writes an four-byte floating-point value to the current stream and advances the stream position by eight bytes.

Parameters
valueThe eight-byte floating-point value to write.

Implements ExitGames.IO.IBinaryWriter.

◆ WriteUTF()

void ExitGames.IO.BigEndianBinaryWriter.WriteUTF ( string  value)
inline

Writes a UTF8 encoded string to the stream.

Parameters
valueThe value.

Implements ExitGames.IO.IBinaryWriter.

Property Documentation

◆ Stream

Stream ExitGames.IO.BigEndianBinaryWriter.Stream
get

Gets the underlying stream.