Nebula
Loading...
Searching...
No Matches
memory.h File Reference

Detailed Description

Implements a memory related functions.

#include "core/config.h"

Go to the source code of this file.

Functions

constexpr uint64_t operator""_KB (const unsigned long long val)
 
constexpr uint64_t operator""_MB (const unsigned long long val)
 
constexpr uint64_t operator""_GB (const unsigned long long val)
 
template<typename TYPE >
TYPE * ArrayAlloc (size_t size)
 
template<typename TYPE >
TYPE * ArrayAllocStack (size_t size)
 
template<typename TYPE >
void ArrayFree (size_t size, TYPE *buffer)
 
template<typename TYPE >
void ArrayFreeStack (size_t size, TYPE *buffer)
 

Variables

thread_local char ThreadLocalMiniHeap []
 
thread_local size_t ThreadLocalMiniHeapIterator
 

Function Documentation

◆ ArrayAlloc()

template<typename TYPE >
TYPE * ArrayAlloc ( size_t size)

◆ ArrayAllocStack()

template<typename TYPE >
TYPE * ArrayAllocStack ( size_t size)

◆ ArrayFree()

template<typename TYPE >
void ArrayFree ( size_t size,
TYPE * buffer )

◆ ArrayFreeStack()

template<typename TYPE >
void ArrayFreeStack ( size_t size,
TYPE * buffer )

◆ operator""_GB()

uint64_t operator""_GB ( const unsigned long long val)
constexpr

◆ operator""_KB()

uint64_t operator""_KB ( const unsigned long long val)
constexpr

◆ operator""_MB()

uint64_t operator""_MB ( const unsigned long long val)
constexpr

Variable Documentation

◆ ThreadLocalMiniHeap

thread_local char ThreadLocalMiniHeap[]
extern

◆ ThreadLocalMiniHeapIterator

thread_local size_t ThreadLocalMiniHeapIterator
extern