C# 클래스 YamlDotNet.Core.LookAheadBuffer

상속: ILookAheadBuffer
파일 보기 프로젝트 열기: aaubry/YamlDotNet

공개 메소드들

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

비공개 메소드들

메소드 설명
GetIndexForOffset ( int offset ) : int

Gets the index of the character for the specified offset.

메소드 상세

Cache() 공개 메소드

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

LookAheadBuffer() 공개 메소드

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.
리턴 System

Peek() 공개 메소드

Gets the character at thhe specified offset.
public Peek ( int offset ) : char
offset int
리턴 char

Skip() 공개 메소드

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
리턴 void