Name

SPVM::Document::NativeAPI::Allocator - Allocator Native APIs

Description

The allocator native APIs of SPVM are the APIs to manipulate 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 allocator object and returns it.

free_instance

void (*free_instance)(void* allocator);

Frees an allocator object.

Native API IDs

0 new_instance
1 free_instance

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License