Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
data_store.hpp
Go to the documentation of this file.
1
// To be provided by the environment.
2
// For a WASM build, this is provided by the JavaScript environment.
3
// For a native build, this is provided in this module.
4
#include "
barretenberg/common/wasm_export.hpp
"
5
#include <cstddef>
6
#include <cstdint>
7
8
// Takes a copy of buf and saves it associated with key.
9
WASM_IMPORT
(
"set_data"
) void
set_data
(
char
const*
key
, uint8_t const*
buf
,
size_t
length
);
10
11
// Copies bytes of data associated with key into out_buf.
12
WASM_IMPORT
("
get_data
")
void
get_data
(
char
const*
key
, uint8_t*
out_buf
);
get_data
void get_data(char const *key, uint8_t *out_buf)
Definition
data_store.cpp:25
set_data
void set_data(char const *key, uint8_t const *addr, size_t length)
Definition
data_store.cpp:16
length
uint8_t const size_t length
Definition
data_store.hpp:9
buf
uint8_t const * buf
Definition
data_store.hpp:9
out_buf
uint8_t * out_buf
Definition
data_store.hpp:12
key
FF key
Definition
indexed_memory_tree.test.cpp:18
wasm_export.hpp
WASM_IMPORT
#define WASM_IMPORT(name)
Definition
wasm_export.hpp:16
src
barretenberg
env
data_store.hpp
Generated by
1.9.8