Rizin
unix-like reverse engineering framework and cli tools
|
This class implements a circular buffer More...
Public Member Functions | |
CircularBuffer (int capacity) | |
int | Put (byte[] source, int offset, int count) |
bool | Put (byte b) |
int | Get (byte[] destination, int offset, int count) |
int | Get () |
Properties | |
int | Size [get] |
Private Attributes | |
int | _capacity |
int | _head |
int | _tail |
int | _size |
byte[] | _buffer |
This class implements a circular buffer
Definition at line 17 of file CircularBuffer.cs.
|
inline |
Definition at line 27 of file CircularBuffer.cs.
References DotZLib.CircularBuffer._buffer, DotZLib.CircularBuffer._capacity, DotZLib.CircularBuffer._head, DotZLib.CircularBuffer._size, and DotZLib.CircularBuffer._tail.
|
inline |
Definition at line 72 of file CircularBuffer.cs.
References DotZLib.CircularBuffer._buffer, DotZLib.CircularBuffer._capacity, DotZLib.CircularBuffer._head, DotZLib.CircularBuffer._size, int, and DotZLib.CircularBuffer.Size.
Definition at line 61 of file CircularBuffer.cs.
References DotZLib.CircularBuffer._buffer, DotZLib.CircularBuffer._capacity, DotZLib.CircularBuffer._head, DotZLib.CircularBuffer._size, count, i, and DotZLib.CircularBuffer.Size.
|
inline |
Definition at line 51 of file CircularBuffer.cs.
References DotZLib.CircularBuffer._buffer, DotZLib.CircularBuffer._capacity, DotZLib.CircularBuffer._size, DotZLib.CircularBuffer._tail, b, and DotZLib.CircularBuffer.Size.
Definition at line 39 of file CircularBuffer.cs.
References DotZLib.CircularBuffer._buffer, DotZLib.CircularBuffer._capacity, DotZLib.CircularBuffer._size, DotZLib.CircularBuffer._tail, count, i, DotZLib.CircularBuffer.Size, and source.
|
private |
Definition at line 24 of file CircularBuffer.cs.
Referenced by DotZLib.CircularBuffer.CircularBuffer(), DotZLib.CircularBuffer.Get(), and DotZLib.CircularBuffer.Put().
|
private |
Definition at line 20 of file CircularBuffer.cs.
Referenced by DotZLib.CircularBuffer.CircularBuffer(), DotZLib.CircularBuffer.Get(), and DotZLib.CircularBuffer.Put().
|
private |
Definition at line 21 of file CircularBuffer.cs.
Referenced by DotZLib.CircularBuffer.CircularBuffer(), and DotZLib.CircularBuffer.Get().
|
private |
Definition at line 23 of file CircularBuffer.cs.
Referenced by DotZLib.CircularBuffer.CircularBuffer(), DotZLib.CircularBuffer.Get(), and DotZLib.CircularBuffer.Put().
|
private |
Definition at line 22 of file CircularBuffer.cs.
Referenced by DotZLib.CircularBuffer.CircularBuffer(), and DotZLib.CircularBuffer.Put().
|
get |
Definition at line 37 of file CircularBuffer.cs.
Referenced by DotZLib.CircularBuffer.Get(), and DotZLib.CircularBuffer.Put().