Метод | Описание | |
---|---|---|
Flush ( ) : bool |
Empties the contents of the buffer by calling the callback specified at construction. After calling this function, Count equals 0. |
|
Reserve ( int size ) : void |
Ensures that size <= (Buffer.Capacity - Count). Performs the following steps: |
|
Write ( byte buffer, int offset, int count ) : void |
Writes the array segment identified by buffer, offset and count to the buffer. The buffer is flushed as necessary. |
|
WriteBuffer ( WriteCallback write, int bufferSize ) : System |
Initializes a new instance of the WriteBuffer class.
|
Метод | Описание | |
---|---|---|
AssertNotNull ( string value ) : void | ||
FlushAsync ( |
||
ReserveAsync ( int size, |
||
WriteAsUtf8 ( string value, int byteCount ) : void | ||
WriteAsync ( byte buffer, int offset, int count, |
||
WriteBuffer ( WriteAsyncCallback writeAsync, int bufferSize ) : System | ||
WriteToBuffer ( byte buffer, int offset, int count ) : int |
public Reserve ( int size ) : void | ||
size | int | The minimum number of bytes to reserve. |
Результат | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | |
offset | int | |
count | int | |
Результат | void |
public WriteBuffer ( WriteCallback write, int bufferSize ) : System | ||
write | WriteCallback | The method that is called when the buffer needs to be emptied. |
bufferSize | int | The size of the buffer in bytes. |
Результат | System |