barretenberg
Loading...
Searching...
No Matches
src
barretenberg
env
data_store.hpp
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);
Generated by
1.9.6