Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_to_radix.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <gmock/gmock.h>
4
6
7namespace bb::avm2::simulation {
8
10 public:
12 ~MockToRadix() override;
13
14 MOCK_METHOD((std::pair<std::vector<uint8_t>, /* truncated */ bool>),
16 (const FF& value, uint32_t num_limbs, uint32_t radix),
17 (override));
18 MOCK_METHOD((std::pair<std::vector<bool>, /* truncated */ bool>),
20 (const FF& value, uint32_t num_limbs),
21 (override));
25 const FF& value,
26 uint32_t radix,
27 uint32_t num_limbs,
28 bool is_output_bits,
30 (override));
31};
32
33} // namespace bb::avm2::simulation
MOCK_METHOD(void, to_be_radix,(MemoryInterface &memory, const FF &value, uint32_t radix, uint32_t num_limbs, bool is_output_bits, MemoryAddress dst_addr),(override))
MOCK_METHOD((std::pair< std::vector< uint8_t >, bool >), to_le_radix,(const FF &value, uint32_t num_limbs, uint32_t radix),(override))
MOCK_METHOD((std::pair< std::vector< bool >, bool >), to_le_bits,(const FF &value, uint32_t num_limbs),(override))
virtual std::pair< std::vector< bool >, bool > to_le_bits(const FF &value, uint32_t num_limbs)=0
virtual std::pair< std::vector< uint8_t >, bool > to_le_radix(const FF &value, uint32_t num_limbs, uint32_t radix)=0
virtual void to_be_radix(MemoryInterface &memory, const FF &value, uint32_t radix, uint32_t num_limbs, bool is_output_bits, MemoryAddress dst_addr)=0
uint32_t dst_addr
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10