forc_util

Module bytecode

Source

Structs§

InstructionWithBytesIterator
An iterator over each fuel_asm::Instruction or fuel_asm::InvalidOpcode with its corresponding bytes.

Functions§

get_bytecode_id
Gets the bytecode ID from a bytecode file. The bytecode ID is the hash of the bytecode after removing the condigurables section, if any.
parse_bytecode_to_instructions
Parses a bytecode file into an iterator of instructions and their corresponding bytes.

Type Aliases§

InstructionWithBytes
A tuple of an instruction and its corresponding bytes. Useful when needing to access the raw bytes of an instruction that is parsed as fuel_asm::InvalidOpcode, such as metadata in the preamble.