C# Class Squishy.Network.ByteBuffer

Summary description for IndexedBuffer.
Datei anzeigen Open project: jaddie/WCell-Utility-Bot

Public Methods

Method Description
ByteBuffer ( int size ) : System

Creates an empty ByteBuffer with the given size, positioned at zero.

ByteBuffer ( int offset, int length, byte bytes ) : System
GetString ( Encoding encoding ) : string
Write ( Stream s ) : void

Writes length buf from the underlying byte array to the given stream, starting at offset.

Write ( Stream s, long startPos ) : void
Write ( TextWriter w, Encoding e ) : void

Method Details

ByteBuffer() public method

Creates an empty ByteBuffer with the given size, positioned at zero.
public ByteBuffer ( int size ) : System
size int
return System

ByteBuffer() public method

public ByteBuffer ( int offset, int length, byte bytes ) : System
offset int
length int
bytes byte
return System

GetString() public method

public GetString ( Encoding encoding ) : string
encoding System.Text.Encoding
return string

Write() public method

Writes length buf from the underlying byte array to the given stream, starting at offset.
public Write ( Stream s ) : void
s Stream
return void

Write() public method

public Write ( Stream s, long startPos ) : void
s Stream
startPos long
return void

Write() public method

public Write ( TextWriter w, Encoding e ) : void
w System.IO.TextWriter
e System.Text.Encoding
return void