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

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

#include <safe_uint.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 SafeUintFuzzBase< Builder >::Parser

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

Definition at line 478 of file safe_uint.fuzzer.hpp.

Member Function Documentation

◆ parseInstructionArgs()

template<typename Builder >
template<typename Instruction::OPCODE opcode>
static Instruction SafeUintFuzzBase< 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 487 of file safe_uint.fuzzer.hpp.

◆ writeInstruction()

template<typename Builder >
template<typename Instruction::OPCODE instruction_opcode>
static void SafeUintFuzzBase< 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 538 of file safe_uint.fuzzer.hpp.


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