Skip to main content

MAX_INSTRUCTION_FILE_BYTES

Constant MAX_INSTRUCTION_FILE_BYTES 

Source
pub const MAX_INSTRUCTION_FILE_BYTES: u64 = _; // 10_485_760u64
Expand description

Per-file read ceiling.

Matches native memory’s own cap (MAX_MEMORY_FILE_BYTES in native_memory_handlers.rs) rather than the far larger ABF one: this content is surfaced in a UI and hashed on every observation, and an instruction file that large is pathological regardless. Oversized files are still reported, with content empty and truncated set — the operator needs to know the file is there even when showing it is impractical, which is the whole point of the feature.