C# Класс Squishy.Network.ByteBuffer

Summary description for IndexedBuffer.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ByteBuffer() публичный Метод

Creates an empty ByteBuffer with the given size, positioned at zero.
public ByteBuffer ( int size ) : System
size int
Результат System

ByteBuffer() публичный Метод

public ByteBuffer ( int offset, int length, byte bytes ) : System
offset int
length int
bytes byte
Результат System

GetString() публичный Метод

public GetString ( Encoding encoding ) : string
encoding System.Text.Encoding
Результат string

Write() публичный Метод

Writes length buf from the underlying byte array to the given stream, starting at offset.
public Write ( Stream s ) : void
s Stream
Результат void

Write() публичный Метод

public Write ( Stream s, long startPos ) : void
s Stream
startPos long
Результат void

Write() публичный Метод

public Write ( TextWriter w, Encoding e ) : void
w System.IO.TextWriter
e System.Text.Encoding
Результат void