C# Class Squishy.Network.ByteBuffer

Summary description for IndexedBuffer.
Afficher le fichier Open project: jaddie/WCell-Utility-Bot

Méthodes publiques

Méthode 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 méthode

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

ByteBuffer() public méthode

public ByteBuffer ( int offset, int length, byte bytes ) : System
offset int
length int
bytes byte
Résultat System

GetString() public méthode

public GetString ( Encoding encoding ) : string
encoding System.Text.Encoding
Résultat string

Write() public méthode

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

Write() public méthode

public Write ( Stream s, long startPos ) : void
s Stream
startPos long
Résultat void

Write() public méthode

public Write ( TextWriter w, Encoding e ) : void
w System.IO.TextWriter
e System.Text.Encoding
Résultat void