Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::testing::BytecodeBuilder Class Reference

#include <bytecode_builder.hpp>

Public Member Functions

BytecodeBuilderadd (const simulation::Instruction &instruction)
 
BytecodeBuilderadd (const InstructionBuilder &builder)
 
BytecodeBuilderadd_raw (std::span< const uint8_t > bytes)
 
std::vector< uint8_t > build () const
 
size_t size () const
 

Private Attributes

std::vector< uint8_t > bytecode
 

Detailed Description

Definition at line 15 of file bytecode_builder.hpp.

Member Function Documentation

◆ add() [1/2]

BytecodeBuilder & bb::avm2::testing::BytecodeBuilder::add ( const InstructionBuilder builder)
inline

Definition at line 18 of file bytecode_builder.hpp.

◆ add() [2/2]

BytecodeBuilder & bb::avm2::testing::BytecodeBuilder::add ( const simulation::Instruction instruction)

Definition at line 10 of file bytecode_builder.cpp.

◆ add_raw()

BytecodeBuilder & bb::avm2::testing::BytecodeBuilder::add_raw ( std::span< const uint8_t >  bytes)

Definition at line 17 of file bytecode_builder.cpp.

◆ build()

std::vector< uint8_t > bb::avm2::testing::BytecodeBuilder::build ( ) const
inline

Definition at line 24 of file bytecode_builder.hpp.

◆ size()

size_t bb::avm2::testing::BytecodeBuilder::size ( ) const
inline

Definition at line 25 of file bytecode_builder.hpp.

Member Data Documentation

◆ bytecode

std::vector<uint8_t> bb::avm2::testing::BytecodeBuilder::bytecode
private

Definition at line 28 of file bytecode_builder.hpp.


The documentation for this class was generated from the following files: