"L. Spiro Engine"
Static Protected Member Functions | Friends

lsa::COsHeap Class Reference

#include <LSAOsHeap.h>

List of all members.

Static Protected Member Functions

static LSVOID LSE_CALL Init (LSA_SIZE _sSize)
static LSVOID LSE_CALL Destroy ()
static LSVOID *LSE_CALL Alloc (LSA_SIZE _sSize)
static LSBOOL LSE_CALL Free (LSVOID *_pvAddr)

Friends

class CMemLib
class CStackAllocator
class CStdAllocator

Detailed Description

Class COsHeap

Description: Use these functions instead of the operating-system functions. They cannot be called except by friends of this class.


Member Function Documentation

static LSVOID* LSE_CALL lsa::COsHeap::Alloc ( LSA_SIZE  _sSize) [static, protected]

Allocate bytes.

Parameters:
_sSizeNumber of bytes to allocate.
Returns:
Returns the allocated bytes or NULL.
static LSVOID LSE_CALL lsa::COsHeap::Destroy ( ) [static, protected]

Destroy the allocator.

static LSBOOL LSE_CALL lsa::COsHeap::Free ( LSVOID *  _pvAddr) [static, protected]

Free bytes.

Parameters:
_pvAddrAddress of the bytes allocated by a previous call to Alloc() to be freed.
Returns:
Returns true if the address exists in this heap and was freed.
static LSVOID LSE_CALL lsa::COsHeap::Init ( LSA_SIZE  _sSize) [static, protected]

Initialize the allocator. _sSize changes meaning per operating system. On Windows, it is ignored.

Parameters:
_sSizeCurrently unused.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator