Method | Description | |
---|---|---|
BufferedOutput ( bool enableBuffering, |
Creates buffered output with specified sinks.
|
|
Clean ( ) : void |
Discards data on the current level of buffering.
|
|
DecreaseLevel ( bool flush ) : int |
Destroys the top level of buffering. Returns the current level index after decreasing. |
|
FindLevelByFilter ( |
Find level index by the filter callback.
|
|
Flush ( ) : void |
Flushes data on current level of buffering to sinks or to the previous level and discards them.
|
|
FlushAll ( ) : void |
Flushes all data from all buffers to sinks. Discards all data and all levels of buffering. Disables output buffering.
|
|
GetContent ( ) : |
Gets a content of buffers on current buffering level.
|
|
GetContentAsString ( ) : string |
Gets a content of buffers on current buffering level converted to string regardless of its type.
|
|
GetFilter ( ) : |
Gets the filtering callback defined on the current level of buffering.
|
|
GetFilter ( int levelIndex ) : |
Gets the filtering callback defined on the specified level of buffering.
|
|
GetLevelInfo ( int levelIndex, |
Gets some information about a specified level.
|
|
GetLevelName ( int levelIndex ) : string |
Get the name of the level. If the level name is null, the filter.ToString() is used.
|
|
IncreaseLevel ( ) : int |
Adds a new level of buffering on the top of the levels stack. Returns the new level index. |
|
SetFilter ( |
Assignes the filtering callback to the current level of buffering. Data are filtered when flushed. |
|
SetFilter ( |
Assignes the filtering callback to the specified level of buffering. Data are filtered when flushed. |
|
SetLevelName ( int levelIndex, string levelName ) : void |
Set the level name.
|
|
SetUserData ( object data ) : void |
Assignes the arbitrary data to the current level of buffering. Data are filtered when flushed. |
|
SetUserData ( object data, int levelIndex ) : void |
Assignes an arbitrary data to the specified level of buffering. Data are filtered when flushed. |
|
ThrowIfDisabled ( ) : void |
Checks output buffer is not disabled.
|
|
Write ( char value ) : void |
Writes a subarray of characters to the output buffer.
|
|
Write ( char value, int index, int count ) : void |
Writes a subarray of characters to the output buffer.
|
|
Write ( string value ) : void |
Writes a string value to the output buffer.
|
|
WriteBytes ( byte value ) : void |
Writes an array of bytes to the output buffer.
|
|
WriteBytes ( byte value, int index, int count ) : void |
Writes a subarray of bytes to the output buffer.
|
Method | Description | |
---|---|---|
AllocateBuffer ( int sizeNeeded, bool binary, System &buffer, int &position ) : int |
Gets a buffer where data of requested size and type can be stored. The buffer may already exist or new one may be created. Works on the current level of buffering. |
|
InternalFlush ( ) : void |
Flushes data on current level of buffering to the sinks or to the previous level. The current level clean up MUST follow this method's call.
|
|
WriteInternal ( |
Writes a subarray to the output buffer.
|
public BufferedOutput ( bool enableBuffering, |
||
enableBuffering | bool | Whether to immediately enable buffering, i.e. increase the level. |
charSink | A writer through which character data will be written. | |
byteSink | Stream | A stream through which binary data will be written. |
encoding | A encoding used to transform binary data to strings. | |
return | System |
public DecreaseLevel ( bool flush ) : int | ||
flush | bool | Whether to flush data on the current level. Data will be discarded if not set. |
return | int |
public FindLevelByFilter ( |
||
filter | ||
return | int |
public GetFilter ( int levelIndex ) : |
||
levelIndex | int | The level of buffering which the filter to associate with. |
return |
public GetLevelInfo ( int levelIndex, |
||
levelIndex | int | Level index starting from 1. |
filter | Filtering callback (if any). | |
size | int | Data size. |
return | void |
public GetLevelName ( int levelIndex ) : string | ||
levelIndex | int | Index of the level from 1. |
return | string |
public SetFilter ( |
||
filter | The filter. Null reference means no filter. | |
return | void |
public SetFilter ( |
||
filter | The filter. Null reference means no filter. | |
levelIndex | int | The level of buffering which the filter to associate with. |
return | void |
public SetLevelName ( int levelIndex, string levelName ) : void | ||
levelIndex | int | Index of the level from 1. |
levelName | string | New name of the level. |
return | void |
public SetUserData ( object data ) : void | ||
data | object | The reference to data. |
return | void |
public SetUserData ( object data, int levelIndex ) : void | ||
data | object | Null reference clears assigned data. |
levelIndex | int | The level of buffering which the filter to associate with. |
return | void |
public Write ( char value ) : void | ||
value | char | Characters to be written. |
return | void |
public Write ( char value, int index, int count ) : void | ||
value | char | The value to be written. |
index | int | Starting index in the array. |
count | int | The number of characters to write. |
return | void |
public Write ( string value ) : void | ||
value | string | The value to be written. |
return | void |
public WriteBytes ( byte value ) : void | ||
value | byte | Bytes to be written. |
return | void |
public WriteBytes ( byte value, int index, int count ) : void | ||
value | byte | Bytes to be written. |
index | int | Starting index in the array. |
count | int | The number of characters to write. |
return | void |