#include <gr_buffer.h>
Collaboration diagram for gr_buffer:
Public Member Functions | |
virtual | ~gr_buffer () |
int | space_available () const |
return number of items worth of space available for writing | |
void * | write_pointer () |
return pointer to write buffer. | |
void | update_write_pointer (int nitems) |
tell buffer that we wrote nitems into it | |
void | set_done (bool done) |
bool | done () const |
Protected Attributes | |
char * | d_base |
unsigned int | d_bufsize |
Friends | |
class | gr_buffer_reader |
gr_buffer_sptr | gr_make_buffer (int nitems, size_t sizeof_item) |
Allocate a buffer that holds at least nitems of size sizeof_item . | |
gr_buffer_reader_sptr | gr_buffer_add_reader (gr_buffer_sptr buf, int history) |
create a new gr_buffer_reader and attach it to buffer buf |
|
|
|
|
|
|
|
return number of items worth of space available for writing
|
|
tell buffer that we wrote
|
|
return pointer to write buffer. The return value points at space that can hold at least space_available() items. |
|
create a new gr_buffer_reader and attach it to buffer
|
|
|
|
Allocate a buffer that holds at least The total size of the buffer will be rounded up to a system dependent boundary. This is typically the system page size, but under MS windows is 64KB. |
|
|
|
|