|
void | add (const char *text) |
| Add text to string buffer. More...
|
|
| bufpager (size_t page=0) |
|
char * | copy (size_t *iosize) |
| Get pointer to copy character data. More...
|
|
char * | dup (void) |
| Create an output string from buffer. More...
|
|
size_t | get (char *text, size_t size) |
| Get string from buffer. More...
|
|
| operator bool () |
| Check if can still save into buffer. More...
|
|
bool | operator! () |
| Check if can still save into buffer. More...
|
|
char * | operator* () |
| Convenience operator to get text. More...
|
|
bufpager & | operator<< (const char *text) |
| Convenience operator to add to pager. More...
|
|
void | put (const char *text, size_t size) |
| Put memory string into buffer including NULL byte. More...
|
|
char * | request (size_t *iosize) |
| Request character buffer to write into directly. More...
|
|
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. More...
|
|
void | update (size_t size) |
| Used to complete a request method. More...
|
|
unsigned long | used (void) const |
| Get total size. More...
|
|
unsigned | max (void) const |
| Get the maximum number of pages that are permitted. More...
|
|
| memalloc (size_t page=0) |
| Construct a memory pager. More...
|
|
unsigned | pages (void) const |
| Get the number of pages that have been allocated from the real heap. More...
|
|
void | purge (void) |
| Purge all allocated memory and heap pages immediately.
|
|
unsigned | size (void) const |
| Get the size of a memory page. More...
|
|
unsigned | utilization (void) const |
| Determine fragmentation level of acquired heap pages. More...
|
|
virtual | ~memalloc () |
| Destroy a memory pager. More...
|
|
int | getchar (void) |
| Get the next character. More...
|
|
size_t | getline (char *string, size_t size) |
| Get text as a line of input from the buffer. More...
|
|
size_t | getline (String &buffer) |
| Get a string as a line of input from the buffer. More...
|
|
size_t | input (InputProtocol &format) |
|
size_t | load (StringPager *list) |
| Load input to a string list. More...
|
|
size_t | print (const PrintProtocol &format) |
|
int | putchar (int code) |
| Put the next character. More...
|
|
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. More...
|
|
size_t | save (const StringPager *list) |
| Save output from a string list. More...
|
|
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.