|
void | add (const 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.
|
|
| operator bool () |
| Check if can still save into buffer.
|
|
bool | operator! () |
| Check if can still save into buffer.
|
|
char * | operator* () |
| Convenience operator to get text.
|
|
bufpager & | operator<< (const char *text) |
| Convenience operator to add to pager.
|
|
void | put (const 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 (const char *text) |
| Set text of string buffer.
|
|
void | update (size_t size) |
| Used to complete a request method.
|
|
unsigned long | used (void) const |
| Get total size.
|
|
unsigned | max (void) const |
| Get the maximum number of pages that are permitted.
|
|
| memalloc (size_t page=0) |
| Construct a memory pager.
|
|
unsigned | pages (void) const |
| Get the number of pages that have been allocated from the real heap.
|
|
void | purge (void) |
| Purge all allocated memory and heap pages immediately.
|
|
unsigned | size (void) const |
| Get the size of a memory page.
|
|
unsigned | utilization (void) const |
| Determine fragmentation level of acquired heap pages.
|
|
virtual | ~memalloc () |
| Destroy a memory pager.
|
|
void * | alloc (size_t size) |
| Convenience function.
|
|
char * | dup (const char *string) |
| Duplicate NULL terminated string into allocated memory.
|
|
void * | dup (void *memory, size_t size) |
| Duplicate existing memory block into allocated memory.
|
|
void * | zalloc (size_t size) |
| Allocate memory from the pager heap.
|
|
int | getchar (void) |
| Get the next character.
|
|
size_t | getline (char *string, size_t size) |
| Get text as a line of input from the buffer.
|
|
size_t | getline (String &buffer) |
| Get a string as a line of input from the buffer.
|
|
size_t | input (InputProtocol &format) |
|
size_t | load (StringPager *list) |
| Load input to a string list.
|
|
size_t | print (const PrintProtocol &format) |
|
int | putchar (int code) |
| Put the next character.
|
|
size_t | putchars (const char *string, size_t count=0) |
|
size_t | putline (const char *string) |
| Put a string as a line of output to the buffer.
|
|
size_t | save (const StringPager *list) |
| Save output from a string list.
|
|
Buffered pager for storing paged strings for character protocol.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 659 of file memory.h.