SPVM::Document::NativeAPI::Allocator - SPVM Allocator Native APIs
// Allocator API void* allocator_api = env->api->allocator; // New allocator void* allocator = allocator_api->new_allocator(); // Free allocator allocator_api->free_allocator(allocator);
SPVM Allocator Native APIs are the public APIs to alloc/free memories.
Allocator native APIs have its IDs.
0 new_allocator 1 free_allocator
void* (*new_allocator)();
Create a new allocator object.
void (*free_allocator)(void* allocator);
Free an allocator object.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.