UCommon

bufpager Class Reference

Buffered pager for storing paged strings for character protocol. More...

#include <memory.h>

Inheritance diagram for bufpager:
Collaboration diagram for bufpager:

Public Member Functions

 bufpager (size_t page=0)
unsigned long getUsed (void)
 Get total size.
void reset (void)
 Reset pager text buffer protocol.
void rewind (void)
 Rewind to start of text buffer protocol.

Protected Member Functions

virtual void * _alloc (size_t size)
 Allocate memory from the pager heap.

Detailed Description

Buffered pager for storing paged strings for character protocol.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 238 of file memory.h.


Member Function Documentation

virtual void* 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.

Parameters:
sizeof memory request.
Returns:
allocated memory or NULL if not possible.

Reimplemented from memalloc.

unsigned long bufpager::getUsed ( void  ) [inline]

Get total size.

Returns:
number of characters in buffer.

Definition at line 272 of file memory.h.


The documentation for this class was generated from the following file: