ucommon
Public Member Functions | Protected Member Functions
ucommon::bufpager Class Reference

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

#include <memory.h>

Inheritance diagram for ucommon::bufpager:
Inheritance graph
[legend]
Collaboration diagram for ucommon::bufpager:
Collaboration graph
[legend]

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 342 of file memory.h.


Member Function Documentation

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.

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

Reimplemented from ucommon::memalloc.

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

Get total size.

Returns:
number of characters in buffer.

Definition at line 376 of file memory.h.


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