Skip to main content

Module bytecode

Module bytecode 

Source

Re-exportsยง

use revm::bytecode::OpCode; ๐Ÿ”’
use revm::bytecode::opcode; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::slice; ๐Ÿ”’

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.