C# Class 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
Afficher le fichier Open project: xamarin/XtermSharp

Méthodes publiques

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

Method Details

BytesLeft() public méthode

public BytesLeft ( ) : int
Résultat int

Done() public méthode

public Done ( ) : void
Résultat void

GetNext() public méthode

public GetNext ( ) : byte
Résultat byte

HasNext() public méthode

public HasNext ( ) : bool
Résultat bool

Prepare() public méthode

public Prepare ( byte* data, int start, int length ) : void
data byte*
start int
length int
Résultat void

Putback() public méthode

Puts back code and the remainder of the buffer
public Putback ( byte code ) : void
code byte
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void