C# 클래스 XtermSharp.ReadingBuffer

Buffer for processing input
Because data might not be complete, we need to put back data that we read to process on a future read. To prepare for reading, on every call to parse, the prepare method is given the new buffer to read from. the `hasNext` describes whether there is more data left on the buffer, and `bytesLeft` returnes the number of bytes left. The `getNext` method fetches either the next value from the putback buffer, or when it is empty, it returns it from the buffer that was passed during prepare. Additionally, the terminal parser needs to reset the parser state on demand, and that is surfaced via reset
파일 보기 프로젝트 열기: xamarin/XtermSharp

공개 메소드들

메소드 설명
BytesLeft ( ) : int
Done ( ) : void
GetNext ( ) : byte
HasNext ( ) : bool
Prepare ( byte* data, int start, int length ) : void
Putback ( byte code ) : void

Puts back code and the remainder of the buffer

Reset ( ) : void

메소드 상세

BytesLeft() 공개 메소드

public BytesLeft ( ) : int
리턴 int

Done() 공개 메소드

public Done ( ) : void
리턴 void

GetNext() 공개 메소드

public GetNext ( ) : byte
리턴 byte

HasNext() 공개 메소드

public HasNext ( ) : bool
리턴 bool

Prepare() 공개 메소드

public Prepare ( byte* data, int start, int length ) : void
data byte*
start int
length int
리턴 void

Putback() 공개 메소드

Puts back code and the remainder of the buffer
public Putback ( byte code ) : void
code byte
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void