7#ifndef MFRAME_0F21FC8D_526B_44F7_979F_3BE0419947B1
8#define MFRAME_0F21FC8D_526B_44F7_979F_3BE0419947B1
17#include "./../lang/Object.h"
18#include "./../sys/Allocator.h"
24 class DefaultAllocator;
82 virtual void*
alloc(
int size)
override;
92 virtual bool free(
void* ptr,
int size = 0)
override;
物件基底類別
Definition Object.h:63
預設記憶體分配器
Definition DefaultAllocator.h:39
DefaultAllocator(void)
建立一個新的預設記憶體分配器
virtual ~DefaultAllocator(void) override
釋放預設記憶體分配器
virtual int getTotal(void) override
取得總記憶體大小
virtual bool free(void *ptr, int size=0) override
釋放先前分配的記憶體
virtual void * alloc(int size) override
分配指定大小的記憶體
virtual int getFree(void) override
取得剩餘的可用記憶體數量
系統功能相關的命名空間
Definition Object.h:31
[Interface] 記憶體分配器介面
Definition Allocator.h:38