Skip to main content

Module bytecode

Module bytecode 

Source

Structs§

Inst
An opcode and its immediate data. Returned by InstIter.
InstIter
An iterator that yields opcodes and their immediate data.
InstIterWithPc
A bytecode iterator that yields opcodes and their immediate data, alongside the program counter.

Functions§

format_bytecode
Returns a string representation of the given bytecode.
format_bytecode_to
Formats an EVM bytecode to the given writer.
imm_len 🔒
Returns the length of the immediate data for the given opcode, or 0 if none.