SPVM::Native::API(3)
π¦ SPVM::Native::API π¦
okay so this is the SPVM::Native::API page from the User Contributed Perl Documentation section, and bestie, it's giving "tiny module, big responsibilities" β¨
π Name
SPVM::Native::API β Native APIs. that's the whole name section, short and iconic π
πΈ Description
so the Native::API class in SPVM has methods to call native APIs. that's it, that's the vibe check, and honestly? obsessed π«Ά
π Usage
like, literally just:
use Native::API;
and you're in, no cap π
β Fields
π§ env
has env : Native::Env;
your environment field, right there, main character energy π
π stack
has stack : Native::Stack;
the stack field, keeping things stacked (literally) π
β¨ Class Methods
static method new : Native::API ($env : Native::Env, $stack : Native::Stack);β the constructor, bestie! you hand it an$envof typeNative::Envand a$stackof typeNative::Stack, and it gives you back a freshNative::APIπ
π₯ Instance Methods
π set_command_info_program_name
method set_command_info_program_name : void ($program_name : string);
copies the program name $program_name and sets the program_name class variable in CommandInfo in this instance class to it. copy, set, slay β¨
π set_command_info_argv
method set_command_info_argv : void ($argv : string[]);
copies the command line arguments $argv and sets the argv class variable in the CommandInfo class in this instance to it. so yes, it's copying and setting, both, we love a multitasker π
πΈ set_command_info_basetime
method set_command_info_basetime : void ($base_time : long);
sets the base_time class variable in the CommandInfo class in this instance to the base time $base_time. no copying here, just setting, periodt π
π¦ call_init_methods
method call_init_methods : void ();
calls all INIT blocks in this instance. every single one. go off π
π§ destroy_class_vars
method destroy_class_vars : void ();
destroys all class variables in this instance π it's giving cleanup era, we respect it
π get_exception
method get_exception : string ();
gets the excetpion. (yes the docs literally spell it "excetpion" and honestly? iconic typo, no notes π) anyway, it returns a string. it's the exception getter, iykyk
β set_exception
method set_exception : void ($exception : string);
sets an excetpion. again, the typo is canon π this one takes $exception (a string) and returns void
π Copyright & License
Copyright (c) 2024 Yuki Kimoto π
MIT License π
and that's the whole page bestie, every field, every method signature, every word, all still here π«Ά
okay final sign-off: this page comes from perl v5.42.2, dated 2026-02-03, and its manpage title is SPVM::Native::API(3) β go forth and call your native APIs, mwah ππΈ
π¦ 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