#include <memblock.h>
Public Member Functions |
| int | WastedSpace () |
| BOOL | Append (int bytes, char *Data=NULL) |
| void | Shrink (int bytes) |
| BOOL | Insert (int offset, int bytes, char *Data=NULL) |
| void | Delete (int offset, int bytes) |
| char * | GetPtr (int offset) |
| int | GetLowerLimit (int offset) |
| int | GetUpperLimit (int offset) |
| void | MemMove (int destoffset, int srcoffset, int bytes) |
| void | MemMove (int destoffset, MemBlock &src, int srcoffset, int bytes) |
| void | MemMove (int destoffset, char *src, int bytes) |
| void | MemMove (char *dest, int srcoffset, int bytes) |
| | MemBlock () |
| | ~MemBlock () |
Data Fields |
| int | TotalUsed |
Protected Member Functions |
| MemFrag * | GetFrag (int offset) |
| void | ShiftOffset (MemFrag *block, int shift) |
| void | Consolidate (MemFrag *block) |
| void | MemMoveUp (int destoffset, char *src, int bytes) |
| void | MemMoveDn (int destoffset, char *src, int bytes) |
Protected Attributes |
| MemFrag * | Current |
| MemFrag * | Last |
Detailed Description
Definition at line 24 of file memblock.h.
Constructor & Destructor Documentation
Member Function Documentation
| BOOL MemBlock::Append |
( |
int |
bytes, |
|
|
char * |
Data = NULL |
|
) |
| |
| void MemBlock::Consolidate |
( |
MemFrag * |
block | ) |
[protected] |
| void MemBlock::Delete |
( |
int |
offset, |
|
|
int |
bytes |
|
) |
| |
| MemFrag* MemBlock::GetFrag |
( |
int |
offset | ) |
[protected] |
| int MemBlock::GetLowerLimit |
( |
int |
offset | ) |
|
| char* MemBlock::GetPtr |
( |
int |
offset | ) |
[inline] |
| int MemBlock::GetUpperLimit |
( |
int |
offset | ) |
|
| BOOL MemBlock::Insert |
( |
int |
offset, |
|
|
int |
bytes, |
|
|
char * |
Data = NULL |
|
) |
| |
| void MemBlock::MemMove |
( |
int |
destoffset, |
|
|
char * |
src, |
|
|
int |
bytes |
|
) |
| |
| void MemBlock::MemMove |
( |
char * |
dest, |
|
|
int |
srcoffset, |
|
|
int |
bytes |
|
) |
| |
| void MemBlock::MemMove |
( |
int |
destoffset, |
|
|
MemBlock & |
src, |
|
|
int |
srcoffset, |
|
|
int |
bytes |
|
) |
| |
| void MemBlock::MemMove |
( |
int |
destoffset, |
|
|
int |
srcoffset, |
|
|
int |
bytes |
|
) |
| |
| void MemBlock::MemMoveDn |
( |
int |
destoffset, |
|
|
char * |
src, |
|
|
int |
bytes |
|
) |
| [protected] |
| void MemBlock::MemMoveUp |
( |
int |
destoffset, |
|
|
char * |
src, |
|
|
int |
bytes |
|
) |
| [protected] |
| void MemBlock::ShiftOffset |
( |
MemFrag * |
block, |
|
|
int |
shift |
|
) |
| [protected] |
| void MemBlock::Shrink |
( |
int |
bytes | ) |
|
| int MemBlock::WastedSpace |
( |
| ) |
|
Field Documentation
The documentation for this class was generated from the following file: