#include <memory.h>
Inheritance diagram for ucommon::bufpager:
Public Member Functions | |
void | add (char *text) |
Add text to string buffer. | |
bufpager (size_t page=0) | |
char * | copy (size_t *iosize) |
Get pointer to copy character data. | |
char * | dup (void) |
Create an output string from buffer. | |
size_t | get (char *text, size_t size) |
Get string from buffer. | |
char * | operator * () |
Convenience operator to get text. | |
operator bool () | |
Check if can still save into buffer. | |
bool | operator! () |
Check if can still save into buffer. | |
bufpager & | operator<< (char *text) |
Convenience operator to add to pager. | |
void | put (char *text, size_t size) |
Put memory string into buffer including NULL byte. | |
char * | request (size_t *iosize) |
Request character buffer to write into directly. | |
void | reset (void) |
Reset pager text buffer protocol. | |
void | rewind (void) |
Rewind to start of text buffer protocol. | |
void | set (char *text) |
Set text of string buffer. | |
void | update (size_t size) |
Used to complete a request method. | |
unsigned long | used (void) |
Get total size. | |
Protected Member Functions | |
virtual void * | _alloc (size_t size) |
Allocate memory from the pager heap. |
Definition at line 659 of file memory.h.
virtual void* ucommon::bufpager::_alloc | ( | size_t | size | ) | [protected, virtual] |
Allocate memory from the pager heap.
The size of the request must be less than the size of the memory page used. This implements the memory protocol allocation method.
size | of memory request. |
Reimplemented from ucommon::memalloc.
void ucommon::bufpager::add | ( | char * | text | ) |
Add text to string buffer.
text | to add. |
char* ucommon::bufpager::copy | ( | size_t * | iosize | ) |
Get pointer to copy character data.
The memory pointer is positioned at the next chunk automatically.
iosize | of data you can copy. |
char* ucommon::bufpager::dup | ( | void | ) |
Create an output string from buffer.
size_t ucommon::bufpager::get | ( | char * | text, | |
size_t | size | |||
) |
Get string from buffer.
text | to save into. | |
size | of buffer. |
char* ucommon::bufpager::operator * | ( | ) | [inline] |
Convenience operator to get text.
Definition at line 734 of file memory.h.
References ucommon::dup().
Here is the call graph for this function:
ucommon::bufpager::operator bool | ( | ) | [inline] |
bool ucommon::bufpager::operator! | ( | ) | [inline] |
bufpager& ucommon::bufpager::operator<< | ( | char * | text | ) | [inline] |
void ucommon::bufpager::put | ( | char * | text, | |
size_t | size | |||
) |
Put memory string into buffer including NULL byte.
text | to add. | |
size | of text to add. |
char* ucommon::bufpager::request | ( | size_t * | iosize | ) |
Request character buffer to write into directly.
iosize | made available. |
void ucommon::bufpager::set | ( | char * | text | ) |
Set text of string buffer.
text | to set. |
void ucommon::bufpager::update | ( | size_t | size | ) |
Used to complete a request method.
size | of data actually written. |
unsigned long ucommon::bufpager::used | ( | void | ) | [inline] |