Skip to content

A simple memory management encapsulation, reversed from Ensemble.

License

Notifications You must be signed in to change notification settings

resemble-studies/memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ensemble Memory

A simple memory management encapsulation, reversed from Ensemble.

Usage

struct SampleStruct {
    int a;
    double b;
};

auto mp = new MemoryPool();

printf("Init: %s", mp->initialize(sizeof(SampleStruct), 0x100, true) ? "T" : "F");

Installation

Clone this repository as a module and include it into your CMake project:

include("ensemble-memory/CMakeLists.txt")

After add_executable, add target ENSEMBLE_MEMORY_LIB into your executable:

target_link_libraries(${MY_EXE} ${ENSEMBLE_MEMORY_LIB})

About

A simple memory management encapsulation, reversed from Ensemble.

Resources

License

Stars

Watchers

Forks