SPVM::D...locator(3)

πŸ“¦ version 0.990125, in alpine 3.24

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::NativeAPI
  • SPVM::Document::NativeAPI::StringBuffer
  • SPVM::Document::NativeClass
  • SPVM::Document

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