Expand description
FFI declarations and memory management.
This module handles all the low-level FFI details so plugin developers don’t have to.
Macros§
- orbis_
allocators - Define memory allocation functions for the plugin
- orbis_
plugin - Define a complete plugin with minimal boilerplate
- wrap_
handler - Wraps a handler function to handle FFI details automatically
Functions§
- allocate_
internal - Internal allocator for WASM - exported through orbis_plugin! macro
- deallocate_
internal - Internal deallocator - exported through orbis_plugin! macro
- log
- Shadow implementation of the log function for non-WASM targets
- read_
bytes ⚠ - Read bytes from a raw pointer with length
- read_
length_ ⚠prefixed - Read a length-prefixed value from a pointer
- return_
bytes - Write a string/bytes and return ptr as i32 (for returning from handlers)
- return_
json - Write JSON and return ptr as i32
- write_
length_ prefixed - Write data with length prefix