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

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

#include <field.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 FieldBase< Builder >::Parser

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

Definition at line 546 of file field.fuzzer.hpp.

Member Function Documentation

◆ parseInstructionArgs()

template<typename Builder >
template<typename Instruction::OPCODE opcode>
static Instruction FieldBase< 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 555 of file field.fuzzer.hpp.

◆ writeInstruction()

template<typename Builder >
template<typename Instruction::OPCODE instruction_opcode>
static void FieldBase< 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 607 of file field.fuzzer.hpp.


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