C# 클래스 Squishy.Network.ByteBuffer

Summary description for IndexedBuffer.
파일 보기 프로젝트 열기: jaddie/WCell-Utility-Bot

공개 메소드들

메소드 설명
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