SPVM::D...locator(3)
okay so bestie, welcome to SPVM::D...locator(3) β itβs a User Contributed Perl Documentation page, and the full name inside is SPVM::Document::NativeAPI::Allocator. this one is literally about allocator native APIs, and itβs giving βsmall but essentialβ main-character energy. π«Ά
πΈ Name
SPVM::Document::NativeAPI::Allocator β Allocator Native APIs
π Description
the allocator native APIs in SPVM are the APIs for memory allocators. thatβs the whole description, and itβs lowkey iconic. β¨
β¨ Usage
hereβs the usage vibe, bestie β copy it exactly:
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. slay. π
π§ free_instance
void (*free_instance)(void* allocator);
Frees the memory allocator allocator. bye to that allocator. π
π₯ Native API IDs
the numeric IDs are literally:
0 new_instance
1 free_instance
π See Also
SPVM::Document::NativeAPISPVM::Document::NativeAPI::StringBufferSPVM::Document::NativeClassSPVM::Document
π Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License
and thatβs the whole page, bestie. footer vibe: source/version perl v5.42.2, dated 2026-02-03. go off. π
π¦ where this page comes from
- alpine 3.24: spvm-doc 0.990125-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms