|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <cstring>#include "barretenberg/common/mem.hpp"#include "barretenberg/common/try_catch_shim.hpp"#include "msgpack_impl/check_memory_span.hpp"#include "msgpack_impl/concepts.hpp"#include "msgpack_impl/msgpack_impl.hpp"#include "msgpack_impl/name_value_pair_macro.hpp"#include "msgpack_impl/schema_name.hpp"#include "msgpack_impl/struct_map_impl.hpp"Go to the source code of this file.
Functions | |
| std::pair< uint8_t *, size_t > | msgpack_encode_buffer (auto &&obj, uint8_t *scratch_buf=nullptr, size_t scratch_size=0) |
|
inline |
Represents this as a bbmalloc'ed object, fit for sending to e.g. TypeScript.
| obj | The object. |
| scratch_buf | Optional pre-allocated scratch buffer to use if result fits. |
| scratch_size | Size of the scratch buffer. |
Definition at line 24 of file msgpack_impl.hpp.