Photon Server API
Public Member Functions | Static Public Attributes | Properties | List of all members
ExitGames.Net.Sockets.BinaryBuffer Class Reference

binary buffer. More...

Public Member Functions

 BinaryBuffer (int capacity)
 Initializes a new instance of the BinaryBuffer class. More...
 
void Clear ()
 clear. More...
 
void Send (ISocketSender sender)
 send. More...
 
void Write (byte[] data, int offset, int length)
 write. More...
 
void Write (IList< ArraySegment< byte >> data)
 write. More...
 

Static Public Attributes

static readonly int DataBlockHeaderSize = sizeof(int)
 data block header size. More...
 
static readonly int HeaderSize = 2 * sizeof(int)
 header size. More...
 

Properties

int BufferUsed [get]
 Gets BufferUsed. More...
 
int Capacity [get]
 Gets Capacity. More...
 
bool Enabled [get, set]
 Gets or sets a value indicating whether Enabled. More...
 
int Length [get]
 Gets Length. More...
 
int MessageCount [get]
 Gets MessageCount. More...
 
int RemainingBuffer [get]
 Gets RemainingBuffer. More...
 

Detailed Description

binary buffer.

Constructor & Destructor Documentation

ExitGames.Net.Sockets.BinaryBuffer.BinaryBuffer ( int  capacity)
inline

Initializes a new instance of the BinaryBuffer class.

Parameters
capacityThe capacity.

Member Function Documentation

void ExitGames.Net.Sockets.BinaryBuffer.Clear ( )
inline

clear.

void ExitGames.Net.Sockets.BinaryBuffer.Send ( ISocketSender  sender)
inline

send.

Parameters
senderThe sender.
void ExitGames.Net.Sockets.BinaryBuffer.Write ( byte[]  data,
int  offset,
int  length 
)
inline

write.

Parameters
dataThe data.
offsetThe offset.
lengthThe length.
Exceptions
ArgumentOutOfRangeException
void ExitGames.Net.Sockets.BinaryBuffer.Write ( IList< ArraySegment< byte >>  data)
inline

write.

Parameters
dataThe data.
Exceptions
ArgumentOutOfRangeException

Member Data Documentation

readonly int ExitGames.Net.Sockets.BinaryBuffer.DataBlockHeaderSize = sizeof(int)
static

data block header size.

readonly int ExitGames.Net.Sockets.BinaryBuffer.HeaderSize = 2 * sizeof(int)
static

header size.

Property Documentation

int ExitGames.Net.Sockets.BinaryBuffer.BufferUsed
get

Gets BufferUsed.

int ExitGames.Net.Sockets.BinaryBuffer.Capacity
get

Gets Capacity.

bool ExitGames.Net.Sockets.BinaryBuffer.Enabled
getset

Gets or sets a value indicating whether Enabled.

int ExitGames.Net.Sockets.BinaryBuffer.Length
get

Gets Length.

int ExitGames.Net.Sockets.BinaryBuffer.MessageCount
get

Gets MessageCount.

int ExitGames.Net.Sockets.BinaryBuffer.RemainingBuffer
get

Gets RemainingBuffer.