C# Class YamlDotNet.Core.LookAheadBuffer

Inheritance: ILookAheadBuffer
Afficher le fichier Open project: aaubry/YamlDotNet

Méthodes publiques

Méthode Description
Cache ( int length ) : void

Reads characters until at least length characters are in the buffer.

LookAheadBuffer ( TextReader input, int capacity ) : System

Initializes a new instance of the LookAheadBuffer class.

Peek ( int offset ) : char

Gets the character at thhe specified offset.

Skip ( int length ) : void

Skips the next length characters. Those characters must have been obtained first by calling the Peek or Cache methods.

Private Methods

Méthode Description
GetIndexForOffset ( int offset ) : int

Gets the index of the character for the specified offset.

Method Details

Cache() public méthode

Reads characters until at least length characters are in the buffer.
public Cache ( int length ) : void
length int /// Number of characters to cache. ///
Résultat void

LookAheadBuffer() public méthode

Initializes a new instance of the LookAheadBuffer class.
public LookAheadBuffer ( TextReader input, int capacity ) : System
input System.IO.TextReader The input.
capacity int The capacity.
Résultat System

Peek() public méthode

Gets the character at thhe specified offset.
public Peek ( int offset ) : char
offset int
Résultat char

Skip() public méthode

Skips the next length characters. Those characters must have been obtained first by calling the Peek or Cache methods.
public Skip ( int length ) : void
length int
Résultat void