Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
BoolFuzzBase< Builder >::Parser Class Reference

Parser class handles the parsing and writing the instructions back to data buffer. More...

#include <bool.fuzzer.hpp>

Static Public Member Functions

template<typename Instruction::OPCODE opcode>
static Instruction parseInstructionArgs (uint8_t *Data)
 Parse a single instruction from data.
 
template<typename Instruction::OPCODE instruction_opcode>
static void writeInstruction (Instruction &instruction, uint8_t *Data)
 Write a single instruction to buffer.
 

Detailed Description

template<typename Builder>
class BoolFuzzBase< Builder >::Parser

Parser class handles the parsing and writing the instructions back to data buffer.

Definition at line 212 of file bool.fuzzer.hpp.

Member Function Documentation

◆ parseInstructionArgs()

template<typename Builder >
template<typename Instruction::OPCODE opcode>
static Instruction BoolFuzzBase< Builder >::Parser::parseInstructionArgs ( uint8_t *  Data)
inlinestatic

Parse a single instruction from data.

Template Parameters
opcodeThe opcode we are parsing
Parameters
DataPointer to arguments in buffer
Returns
Parsed instructiong

Definition at line 221 of file bool.fuzzer.hpp.

◆ writeInstruction()

template<typename Builder >
template<typename Instruction::OPCODE instruction_opcode>
static void BoolFuzzBase< Builder >::Parser::writeInstruction ( Instruction instruction,
uint8_t *  Data 
)
inlinestatic

Write a single instruction to buffer.

Template Parameters
instruction_opcodeInstruction type
Parameters
instructioninstruction
DataPointer to the data buffer (needs to have enough space for the instruction)

Definition at line 258 of file bool.fuzzer.hpp.


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