C# Class MongoDB.Bson.IO.JsonBuffer

Represents a wrapper around a TextReader to provide some buffering functionality.
Mostra file Open project: egametang/Egametang Class Usage Examples

Public Methods

Method Description
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).

Method Details

JsonBuffer() public method

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

Read() public method

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

Substring() public method

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

Substring() public method

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.
return string

UnRead() public method

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.
return void