C# Class Medusa.Network.NetworkBuffer

Show file Open project: fjz13/Medusa

Public Methods

Method Description
NetworkBuffer ( ) : System
NetworkBuffer ( byte buffer ) : System
PeekInteger ( ) : int
PeekUInt ( ) : uint
ReadAll ( ) : byte[]
ReadData ( int len ) : byte[]
ReadInteger ( ) : int
ReadString ( uint len ) : string
ReadUInt ( ) : uint
Retrieve ( int len ) : void
RetrieveAll ( ) : void
Write ( byte buffer ) : void
Write ( byte buffer, int offset, int count ) : void
Write ( int val ) : void
Write ( string val ) : void
Write ( uint val ) : void

Private Methods

Method Description
EnsureWritableCount ( int len ) : void

Method Details

NetworkBuffer() public method

public NetworkBuffer ( ) : System
return System

NetworkBuffer() public method

public NetworkBuffer ( byte buffer ) : System
buffer byte
return System

PeekInteger() public method

public PeekInteger ( ) : int
return int

PeekUInt() public method

public PeekUInt ( ) : uint
return uint

ReadAll() public method

public ReadAll ( ) : byte[]
return byte[]

ReadData() public method

public ReadData ( int len ) : byte[]
len int
return byte[]

ReadInteger() public method

public ReadInteger ( ) : int
return int

ReadString() public method

public ReadString ( uint len ) : string
len uint
return string

ReadUInt() public method

public ReadUInt ( ) : uint
return uint

Retrieve() public method

public Retrieve ( int len ) : void
len int
return void

RetrieveAll() public method

public RetrieveAll ( ) : void
return void

Write() public method

public Write ( byte buffer ) : void
buffer byte
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

Write() public method

public Write ( int val ) : void
val int
return void

Write() public method

public Write ( string val ) : void
val string
return void

Write() public method

public Write ( uint val ) : void
val uint
return void