Skip to main content

log_64

Function log_64 

Source
pub fn log_64(a: u64, b: u64, c: u64, d: u64, e: u64)
Expand description

Log up to five u64 values through the sol_log_64_ syscall.

One syscall, no allocation, no format parsing. Pad unused slots with zero. The Solana runtime renders the five values as a single line “Program log: 0x… 0x… …”. Use this as the tight-loop escape hatch when the output is going to be grep’d, not read.

// Emit "balance, delta, new_balance":
hopper_runtime::log::log_64(balance, delta, new_balance, 0, 0);