Method | Description | |
---|---|---|
BitRingBuffer ( ) : System |
Initializes a new instance of the BitRingBuffer class with a default buffer size of 256 bytes.
|
|
BitRingBuffer ( int bufferSize ) : System |
Initializes a new instance of the BitRingBuffer class with a buffer size of bufferSize bytes.
|
|
Clear ( ) : void |
Clear all data in the buffer.
|
|
ReadBoolean ( ) : bool |
Reads a single bit from the stream.
|
|
ReadByte ( ) : byte |
Reads a byte from the stream.
|
|
ReadBytes ( byte buffer, int index, int count ) : void |
Reads count bytes into buffer starting at index.
|
|
Write ( bool value ) : void |
Writes the value as a bit in the buffer.
|
|
Write ( byte value ) : void |
Writes the value to the buffer.
|
|
Write ( byte buffer, int index, int count ) : void |
Writes count bytes from buffer starting at index.
|
Method | Description | |
---|---|---|
this ( int i ) : bool |
public BitRingBuffer ( int bufferSize ) : System | ||
bufferSize | int | |
return | System |
public ReadBytes ( byte buffer, int index, int count ) : void | ||
buffer | byte | |
index | int | |
count | int | |
return | void |
public Write ( byte buffer, int index, int count ) : void | ||
buffer | byte | |
index | int | |
count | int | |
return | void |