CLucene - a full-featured, c++ search engine
API Documentation
#include <inputstreambuffer.h>
Public Member Functions | |
InputStreamBuffer () | |
~InputStreamBuffer () | |
void | setSize (int32_t size) |
int32_t | read (const T *&start, int32_t max=0) |
int32_t | makeSpace (int32_t needed) |
This function prepares the buffer for a new write. | |
Data Fields | |
T * | start |
int32_t | size |
T * | readPos |
int32_t | avail |
jstreams::InputStreamBuffer< T >::InputStreamBuffer | ( | ) | [inline] |
jstreams::InputStreamBuffer< T >::~InputStreamBuffer | ( | ) | [inline] |
References jstreams::InputStreamBuffer< T >::start.
void jstreams::InputStreamBuffer< T >::setSize | ( | int32_t | size | ) | [inline] |
References jstreams::InputStreamBuffer< T >::readPos, and jstreams::InputStreamBuffer< T >::start.
Referenced by jstreams::InputStreamBuffer< T >::makeSpace().
int32_t jstreams::InputStreamBuffer< T >::read | ( | const T *& | start, | |
int32_t | max = 0 | |||
) | [inline] |
int32_t jstreams::InputStreamBuffer< T >::makeSpace | ( | int32_t | needed | ) | [inline] |
This function prepares the buffer for a new write.
returns the number of available places.
References jstreams::InputStreamBuffer< T >::avail, jstreams::InputStreamBuffer< T >::readPos, jstreams::InputStreamBuffer< T >::setSize(), jstreams::InputStreamBuffer< T >::size, and jstreams::InputStreamBuffer< T >::start.
T* jstreams::InputStreamBuffer< T >::start |
int32_t jstreams::InputStreamBuffer< T >::size |
T* jstreams::InputStreamBuffer< T >::readPos |
int32_t jstreams::InputStreamBuffer< T >::avail |