Name
SPVM::Document::NativeAPI::Allocator - Allocator Native APIs
Description
The allocator native APIs in SPVM are the APIs for memory allocators.
Usage
SPVM_API_ALLOCATOR* api_allocator = env->api->allocator;
void* allocator = api_allocator->new_instance();
api_allocator->free_instance(allocator);
Native APIs
new_instance
void* (*new_instance)(void);
Creates a new memory allocator and returns it.
free_instance
void (*free_instance)(void* allocator);
Frees the memory allocator allocator.
Native API IDs
0 new_instance
1 free_instance
See Also
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License