Method | Description | |
---|---|---|
CircularBufferStream ( int bufferSize ) : System |
Creates a new circular buffer.
|
|
DoneWriting ( ) : void |
Signals that no further calls to Write are intended and any blocked Read calls should return.
|
|
Flush ( ) : void | ||
Read ( byte buffer, int offset, int count ) : int | ||
RelayErrorToReader ( |
Throws an exception from within Read.
|
|
Seek ( long offset, SeekOrigin origin ) : long | ||
SetLength ( long value ) : void |
Sets the estimated number of bytes that will run through this buffer in total; -1 for unknown.
|
|
Write ( byte buffer, int offset, int count ) : void |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
public CircularBufferStream ( int bufferSize ) : System | ||
bufferSize | int | The maximum number of bytes the buffer can hold at any time. |
return | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
return | int |
public RelayErrorToReader ( |
||
exception | The exception to throw. | |
return | void |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | |
origin | SeekOrigin | |
return | long |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | |
offset | int | |
count | int | |
return | void |