Skip to main content

Module raw_input

Module raw_input 

Source
Expand description

Raw loader input parsing for Hopper Native.

This is the single source of truth for Solana loader input decoding. It owns duplicate-account resolution, canonical-account lookup, and original-index tracking so higher layers operate on already-resolved account views.

Structs§

FrameInfo
Summary of a safely-parsed loader input frame.
RawAccountIndex
Metadata for one parsed account slot in the loader input.
RawInstructionFrame
Instruction tail discovered after scanning the loader input buffer.

Enums§

FrameError
Errors returned by the safe parser.

Constants§

MAX_SAFE_ACCOUNT_SLOTS
Hard cap on accounts the safe parser will record slot offsets for.

Functions§

deserialize_accounts
Deserialize the loader input into AccountViews.
deserialize_accounts_fast
Fast two-argument deserialize: instruction data and program id are provided directly by the caller (from the SVM’s second entrypoint register), so the full account-scan pass is skipped entirely.
parse_instruction_frame_checked
Parse a loader-input byte buffer with full bounds checking.
scan_instruction_frame
Parse just the instruction tail and account span from the loader input.