C# Class Newtonsoft.Json.Utilities.StringBuffer

Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer.
显示文件 Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Public Methods

Method Description
Append ( IArrayPool bufferPool, char value ) : void
Append ( IArrayPool bufferPool, char buffer, int startIndex, int count ) : void
Clear ( IArrayPool bufferPool ) : void
StringBuffer ( IArrayPool bufferPool, int initalSize ) : System
ToString ( ) : string
ToString ( int start, int length ) : string

Private Methods

Method Description
EnsureSize ( IArrayPool bufferPool, int appendLength ) : void
StringBuffer ( char buffer ) : System

Method Details

Append() public method

public Append ( IArrayPool bufferPool, char value ) : void
bufferPool IArrayPool
value char
return void

Append() public method

public Append ( IArrayPool bufferPool, char buffer, int startIndex, int count ) : void
bufferPool IArrayPool
buffer char
startIndex int
count int
return void

Clear() public method

public Clear ( IArrayPool bufferPool ) : void
bufferPool IArrayPool
return void

StringBuffer() public method

public StringBuffer ( IArrayPool bufferPool, int initalSize ) : System
bufferPool IArrayPool
initalSize int
return System

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( int start, int length ) : string
start int
length int
return string