C# 클래스 PureCat.Message.Spi.Codec.ChannelBuffer

상속: IDisposable
파일 보기 프로젝트 열기: chinaboard/PureCat 1 사용 예제들

공개 메소드들

메소드 설명
BytesBefore ( byte separator ) : int

从当前位置到目标字符第一次出现的位置有多少字节?

ChannelBuffer ( int capacity ) : System.Text
Dispose ( ) : void
ReadByte ( ) : byte
ReadBytes ( byte data ) : int
ReadableBytes ( ) : int
Reset ( ) : void
SetInt ( int index, int i ) : void

在流的相应位置插入一个整数的字节(覆盖?)

Skip ( int bytes ) : void
ToArray ( ) : byte[]
ToString ( ) : string

从当前位置到结尾的字节数组的字符串表示

WriteByte ( byte b ) : void
WriteByte ( char c ) : void
WriteBytes ( byte data ) : void
WriteBytes ( byte data, int offset, int len ) : void
WriteInt ( int i ) : void

비공개 메소드들

메소드 설명
ToBytes ( int value ) : byte[]

메소드 상세

BytesBefore() 공개 메소드

从当前位置到目标字符第一次出现的位置有多少字节?
public BytesBefore ( byte separator ) : int
separator byte
리턴 int

ChannelBuffer() 공개 메소드

public ChannelBuffer ( int capacity ) : System.Text
capacity int
리턴 System.Text

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ReadByte() 공개 메소드

public ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 메소드

public ReadBytes ( byte data ) : int
data byte
리턴 int

ReadableBytes() 공개 메소드

public ReadableBytes ( ) : int
리턴 int

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

SetInt() 공개 메소드

在流的相应位置插入一个整数的字节(覆盖?)
public SetInt ( int index, int i ) : void
index int
i int
리턴 void

Skip() 공개 메소드

public Skip ( int bytes ) : void
bytes int
리턴 void

ToArray() 공개 메소드

public ToArray ( ) : byte[]
리턴 byte[]

ToString() 공개 메소드

从当前位置到结尾的字节数组的字符串表示
public ToString ( ) : string
리턴 string

WriteByte() 공개 메소드

public WriteByte ( byte b ) : void
b byte
리턴 void

WriteByte() 공개 메소드

public WriteByte ( char c ) : void
c char
리턴 void

WriteBytes() 공개 메소드

public WriteBytes ( byte data ) : void
data byte
리턴 void

WriteBytes() 공개 메소드

public WriteBytes ( byte data, int offset, int len ) : void
data byte
offset int
len int
리턴 void

WriteInt() 공개 메소드

public WriteInt ( int i ) : void
i int
리턴 void