#include <memory.h>
Collection of system independent memory allocation functions.
Definition at line 17 of file memory.h.
◆ AJAMemory()
◆ ~AJAMemory()
AJAMemory::~AJAMemory |
( |
| ) |
|
|
virtual |
◆ Allocate()
void * AJAMemory::Allocate |
( |
size_t |
size | ) |
|
|
static |
Allocate memory with no specific alignment requirements.
- Parameters
-
[in] | size | Bytes of memory to allocate. |
- Returns
- Address of allocated memory. NULL if allocation fails.
Definition at line 71 of file memory.cpp.
◆ AllocateAligned()
void * AJAMemory::AllocateAligned |
( |
size_t |
size, |
|
|
size_t |
alignment |
|
) |
| |
|
static |
Allocate memory aligned to alignment bytes.
- Parameters
-
[in] | size | Bytes of memory to allocate. |
[in] | alignment | Alignment of allocated memory in bytes. |
- Returns
- Address of allocated memory. NULL if allocation fails.
Definition at line 115 of file memory.cpp.
◆ AllocateShared()
void * AJAMemory::AllocateShared |
( |
size_t * |
size, |
|
|
const char * |
pShareName, |
|
|
bool |
global = true |
|
) |
| |
|
static |
Allocate memory aligned to alignment bytes.
Allocates a named system wide memory region. If the named memory already exists that memory is returned and size is updated to reflect the preallocated size.
- Parameters
-
[in,out] | size | Bytes of memory to allocate. |
[in] | pShareName | Name of system wide memory to allocate. |
[in] | global | If true, shared memory region will be accessible across user accounts (Windows-only). |
- Returns
- Address of allocated memory. NULL if allocation fails.
Definition at line 169 of file memory.cpp.
◆ Free()
void AJAMemory::Free |
( |
void * |
pMemory | ) |
|
|
static |
Free memory allocated using Allocate().
- Parameters
-
[in] | pMemory | Address of memory to free. |
Definition at line 97 of file memory.cpp.
◆ FreeAligned()
void AJAMemory::FreeAligned |
( |
void * |
pMemory | ) |
|
|
static |
◆ FreeShared()
void AJAMemory::FreeShared |
( |
void * |
pMemory | ) |
|
|
static |
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/system/memory.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/ajabase/system/memory.cpp