C# 클래스 MongoDB.Bson.IO.JsonBuffer

Represents a wrapper around a TextReader to provide some buffering functionality.
파일 보기 프로젝트 열기: egametang/Egametang 1 사용 예제들

공개 메소드들

메소드 설명
JsonBuffer ( string buffer )

Initializes a new instance of the JsonBuffer class.

Read ( ) : int

Reads a character from the buffer.

Substring ( int start ) : string

Reads a substring from the buffer.

Substring ( int start, int count ) : string

Reads a substring from the buffer.

UnRead ( int c ) : void

Returns one character to the buffer (if the character matches the one at the current position the current position is moved back by one).

메소드 상세

JsonBuffer() 공개 메소드

Initializes a new instance of the JsonBuffer class.
public JsonBuffer ( string buffer )
buffer string The string.

Read() 공개 메소드

Reads a character from the buffer.
public Read ( ) : int
리턴 int

Substring() 공개 메소드

Reads a substring from the buffer.
public Substring ( int start ) : string
start int The zero based index of the start of the substring.
리턴 string

Substring() 공개 메소드

Reads a substring from the buffer.
public Substring ( int start, int count ) : string
start int The zero based index of the start of the substring.
count int The number of characters in the substring.
리턴 string

UnRead() 공개 메소드

Returns one character to the buffer (if the character matches the one at the current position the current position is moved back by one).
public UnRead ( int c ) : void
c int The character to return.
리턴 void