Method | Description | |
---|---|---|
Clear ( ) : void |
Clear the buffer contents.
|
|
Close ( ) : void |
Close the buffer for writing. A Read when the buffer is closed and there is no data will return -1. |
|
Read ( byte buffer, int index, int count ) : int | ||
ReadByte ( ) : int |
Read a byte from the buffer.
|
|
ReadWriteRingBuffer ( int size ) : System |
Create a new RingBuffer with a specified size.
|
|
Write ( byte buffer, int index, int count ) : void | ||
WriteByte ( byte value ) : void |
Write adds a byte to the head of the RingBuffer.
|
|
this ( int index ) : byte |
Indexer - Get an element from the tail of the RingBuffer.
|
public Read ( byte buffer, int index, int count ) : int | ||
buffer | byte | |
index | int | |
count | int | |
return | int |
public ReadWriteRingBuffer ( int size ) : System | ||
size | int | The size of the ring buffer to create. |
return | System |
public Write ( byte buffer, int index, int count ) : void | ||
buffer | byte | |
index | int | |
count | int | |
return | void |
public WriteByte ( byte value ) : void | ||
value | byte | The value to add. |
return | void |