Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
msgpack Namespace Reference

Namespaces

namespace  adaptor
 

Functions

template<msgpack_concepts::HasMsgPack T>
void msgpack_apply (const auto &func, auto &... args)
 Helper method for better error reporting. Clang does not give the best errors for lambdas.
 
template<msgpack_concepts::HasMsgPack T>
void msgpack_apply (const T &value, const auto &func)
 Applies a function to the values exposed by the msgpack method.
 
template<msgpack_concepts::HasMsgPack T>
bool msgpack_check_eq (const T &v1, const T &v2, const std::string_view &error_message)
 Ensures that two msgpack objects are equal by applying the msgpack method to both and comparing the results.
 
template<typename T >
uintptr_t __aligned_for (uintptr_t ptr)
 
template<typename T , typename... Args>
std::string check_memory_span (T *obj, Args *... args)
 
template<msgpack_concepts::HasMsgPack T>
std::string check_msgpack_method (const T &object)
 
void check_msgpack_usage (const auto &object)
 
template<typename Tuple , std::size_t... Is>
auto drop_keys_impl (Tuple &&tuple, std::index_sequence< Is... >)
 
template<typename... Args>
auto drop_keys (std::tuple< Args... > &&tuple)
 Drops every first value pairwise of a flat argument tuple, assuming that they are keys.
 

Function Documentation

◆ __aligned_for()

template<typename T >
uintptr_t msgpack::__aligned_for ( uintptr_t  ptr)

Definition at line 14 of file check_memory_span.hpp.

◆ check_memory_span()

template<typename T , typename... Args>
std::string msgpack::check_memory_span ( T *  obj,
Args *...  args 
)

Definition at line 19 of file check_memory_span.hpp.

◆ check_msgpack_method()

std::string msgpack::check_msgpack_method ( const T &  object)

Definition at line 68 of file check_memory_span.hpp.

◆ check_msgpack_usage()

void msgpack::check_msgpack_usage ( const auto &  object)

Definition at line 76 of file check_memory_span.hpp.

◆ drop_keys()

template<typename... Args>
auto msgpack::drop_keys ( std::tuple< Args... > &&  tuple)

Drops every first value pairwise of a flat argument tuple, assuming that they are keys.

Definition at line 15 of file drop_keys.hpp.

◆ drop_keys_impl()

template<typename Tuple , std::size_t... Is>
auto msgpack::drop_keys_impl ( Tuple &&  tuple,
std::index_sequence< Is... >   
)

Definition at line 5 of file drop_keys.hpp.

◆ msgpack_apply() [1/2]

void msgpack::msgpack_apply ( const auto &  func,
auto &...  args 
)

Helper method for better error reporting. Clang does not give the best errors for lambdas.

Definition at line 10 of file msgpack_apply.hpp.

◆ msgpack_apply() [2/2]

void msgpack::msgpack_apply ( const T &  value,
const auto &  func 
)

Applies a function to the values exposed by the msgpack method.

Parameters
valueThe value whose fields to reflect over.
funcThe function to call with each field as an argument.

Definition at line 19 of file msgpack_apply.hpp.

◆ msgpack_check_eq()

bool msgpack::msgpack_check_eq ( const T &  v1,
const T &  v2,
const std::string_view &  error_message 
)

Ensures that two msgpack objects are equal by applying the msgpack method to both and comparing the results.

Definition at line 15 of file msgpack_check_eq.hpp.