DotZLib::CircularBuffer Class Reference

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

Private Attributes

int _capacity
int _head
int _tail
int _size
byte[] _buffer


Detailed Description

This class implements a circular buffer.

Definition at line 17 of file CircularBuffer.cs.


Constructor & Destructor Documentation

DotZLib::CircularBuffer::CircularBuffer int  capacity  )  [inline]
 

Definition at line 27 of file CircularBuffer.cs.

References _buffer, _capacity, _head, _size, _tail, and Debug.


Member Function Documentation

int DotZLib::CircularBuffer::Get  )  [inline]
 

Definition at line 72 of file CircularBuffer.cs.

References _buffer, _capacity, _head, _size, int(), result, and Size.

int DotZLib::CircularBuffer::Get byte[]  destination,
int  offset,
int  count
[inline]
 

Definition at line 61 of file CircularBuffer.cs.

References _buffer, _capacity, _head, _size, i, and Size.

bool DotZLib::CircularBuffer::Put byte  b  )  [inline]
 

Definition at line 51 of file CircularBuffer.cs.

References _buffer, _capacity, _size, _tail, and Size.

int DotZLib::CircularBuffer::Put byte[]  source,
int  offset,
int  count
[inline]
 

Definition at line 39 of file CircularBuffer.cs.

References _buffer, _capacity, _size, _tail, Debug, i, and Size.


Field Documentation

byte [] DotZLib::CircularBuffer::_buffer [private]
 

Definition at line 24 of file CircularBuffer.cs.

Referenced by CircularBuffer(), Get(), and Put().

int DotZLib::CircularBuffer::_capacity [private]
 

Definition at line 20 of file CircularBuffer.cs.

Referenced by CircularBuffer(), Get(), and Put().

int DotZLib::CircularBuffer::_head [private]
 

Definition at line 21 of file CircularBuffer.cs.

Referenced by CircularBuffer(), and Get().

int DotZLib::CircularBuffer::_size [private]
 

Definition at line 23 of file CircularBuffer.cs.

Referenced by CircularBuffer(), Get(), and Put().

int DotZLib::CircularBuffer::_tail [private]
 

Definition at line 22 of file CircularBuffer.cs.

Referenced by CircularBuffer(), and Put().


Property Documentation

int DotZLib::CircularBuffer::Size [get]
 

Definition at line 37 of file CircularBuffer.cs.

Referenced by Get(), and Put().


The documentation for this class was generated from the following file:
Generated on Fri Apr 14 23:25:14 2006 for minix by  doxygen 1.4.6