File funcs.cpp

namespace sgx

Functions

uint32_t getFaasmFunctionsApi(NativeSymbol **nativeSymbols)
static int32_t faasm_read_input_wrapper(wasm_exec_env_t execEnv, uint8_t *buffer, unsigned int bufferSize)
static void faasm_write_output_wrapper(wasm_exec_env_t execEnv, char *output, unsigned int outputSize)
static unsigned int faasm_chain_name_wrapper(wasm_exec_env_t execEnv, const char *name, const uint8_t *input, unsigned int inputSize)
static unsigned int faasm_chain_ptr_wrapper(wasm_exec_env_t execEnv, int wasmFuncPtr, const uint8_t *inputData, unsigned int inputSize)
static unsigned int faasm_await_call_wrapper(wasm_exec_env_t execEnv, unsigned int callId)
static unsigned int faasm_await_call_output_wrapper(wasm_exec_env_t execEnv, unsigned int callId, char *buffer, unsigned int bufferSize)

Variables

static NativeSymbol ns[] = {REG_FAASM_NATIVE_FUNC(faasm_read_input, "($i)i"), REG_FAASM_NATIVE_FUNC(faasm_write_output, "($i)"), REG_FAASM_NATIVE_FUNC(faasm_chain_name, "($$i)i"), REG_FAASM_NATIVE_FUNC(faasm_chain_ptr, "(*$i)i"), REG_FAASM_NATIVE_FUNC(faasm_await_call, "(i)i"), REG_FAASM_NATIVE_FUNC(faasm_await_call_output, "(i$i)i"),}