Expand description
Program entrypoint ownership for Hopper Native.
This file is the only raw program-entry boundary owner in Hopper Native.
Loader input parsing lives in crate::raw_input, while the public macros
below own the raw entrypoint(input: *mut u8) boundary and delegate into
Hopper callbacks.
Structs§
- Bump
Allocator - A bump allocator over the SVM heap region.
Constants§
- HEAP_
LENGTH - Default Solana heap region length (32 KiB).
- HEAP_
RUNTIME_ RESERVED - Bytes of the heap’s BOTTOM reserved as Hopper runtime scratch, starting
right after the
BumpAllocatorcursor word: the byte range[HEAP_START + 8, HEAP_START + 8 + HEAP_RUNTIME_RESERVED). - HEAP_
START_ ADDRESS - Canonical Solana heap region start address (
0x3_0000_0000).
Functions§
- err_
to_ u64 - Convert a handler’s
ProgramErrorinto the Solana runtime’s u64 return code. - process_
entrypoint ⚠ - Process the BPF entrypoint input.