#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:
-
_sSize | Number of bytes to allocate. |
- Returns:
- Returns the allocated bytes or NULL.
static LSVOID LSE_CALL lsa::COsHeap::Destroy |
( |
| ) |
[static, protected] |
static LSBOOL LSE_CALL lsa::COsHeap::Free |
( |
LSVOID * |
_pvAddr | ) |
[static, protected] |
Free bytes.
- Parameters:
-
_pvAddr | Address 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:
-
The documentation for this class was generated from the following file:
- F:/My Projects/LSEngine/Modules/LSMemLib/Src/OSHeap/LSAOsHeap.h