SPVM::Document::NativeAPI::Allocator - Allocator Native APIs
The allocator native APIs in SPVM are the APIs for memory allocators.
SPVM_API_ALLOCATOR* api_allocator = env->api->allocator; void* allocator = api_allocator->new_instance(); api_allocator->free_instance(allocator);
void* (*new_instance)(void);
Creates a new memory allocator and returns it.
void (*free_instance)(void* allocator);
Frees the memory allocator allocator.
0 new_instance 1 free_instance
SPVM::Document::NativeAPI
SPVM::Document::NativeAPI::StringBuffer
SPVM::Document::NativeClass
SPVM::Document
Copyright (c) 2023 Yuki Kimoto
MIT License
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.