Ark Server API (ASA) - Wiki
|
#include <MemStack.h>
Classes | |
struct | FTaggedMemory |
Public Member Functions | |
FMemStackBase () | |
FMemStackBase (const FMemStackBase &)=delete | |
FMemStackBase (FMemStackBase &&Other) | |
FMemStackBase & | operator= (FMemStackBase &&Other) |
~FMemStackBase () | |
FORCEINLINE uint8 * | PushBytes (size_t AllocSize, size_t Alignment) |
FORCEINLINE void * | Alloc (size_t AllocSize, size_t Alignment) |
FORCEINLINE bool | IsEmpty () const |
FORCEINLINE void | Flush () |
FORCEINLINE int32 | GetNumMarks () |
int32 | GetByteCount () const |
bool | ContainsPointer (const void *Pointer) const |
Protected Attributes | |
bool | bShouldEnforceAllocMarks |
Private Member Functions | |
void | AllocateNewChunk (int32 MinSize) |
void | FreeChunks (FTaggedMemory *NewTopChunk) |
Private Attributes | |
uint8 * | Top |
uint8 * | End |
FTaggedMemory * | TopChunk |
class FMemMark * | TopMark |
int32 | NumMarks |
Simple linear-allocation memory stack. Items are allocated via PushBytes() or the specialized operator new()s. Items are freed en masse by using FMemMark to Pop() them.
Definition at line 77 of file MemStack.h.
FMemStackBase::FMemStackBase | ( | ) |
|
delete |
|
inline |
Definition at line 84 of file MemStack.h.
|
inline |
|
inline |
Allocate a new chunk of memory of at least MinSize size, updates the memory stack's Chunks table and ActiveChunks counter.
|
inline |
|
private |
Frees the chunks above the specified chunk on the stack.
int32 FMemStackBase::GetByteCount | ( | ) | const |
|
inline |
Definition at line 155 of file MemStack.h.
|
inline |
return true if this stack is empty.
Definition at line 145 of file MemStack.h.
|
inline |
Definition at line 89 of file MemStack.h.
|
inline |
Definition at line 111 of file MemStack.h.
Definition at line 166 of file MemStack.h.
Definition at line 290 of file MemStack.h.
|
friend |
Definition at line 272 of file MemStack.h.
Definition at line 258 of file MemStack.h.
|
friend |
Definition at line 299 of file MemStack.h.
|
friend |
Definition at line 281 of file MemStack.h.
|
friend |
Definition at line 265 of file MemStack.h.
Definition at line 340 of file MemStack.h.
|
friend |
Definition at line 322 of file MemStack.h.
Definition at line 308 of file MemStack.h.
|
friend |
Definition at line 349 of file MemStack.h.
|
friend |
Definition at line 331 of file MemStack.h.
|
friend |
Definition at line 315 of file MemStack.h.
|
protected |
Definition at line 216 of file MemStack.h.
|
private |
Definition at line 205 of file MemStack.h.
|
private |
The number of marks on this stack.
Definition at line 212 of file MemStack.h.
|
private |
Definition at line 204 of file MemStack.h.
|
private |
Definition at line 206 of file MemStack.h.
The top mark on the stack.
Definition at line 209 of file MemStack.h.