[−][src]Module fluence_sdk_main::memory
Raw API for dealing with Wasm memory.
This module contains functions for memory initializing and manipulating.
Modules
errors | Contains definitions for memory errors. |
Constants
RESULT_SIZE_BYTES | Count of bytes that length of resulted array occupies. |
Functions
alloc⚠ | Allocates memory area of specified size and returns its address. Actually is just a wrapper for
|
dealloc⚠ | Deallocates memory area for current memory pointer and size. Actually is just a wrapper for
|
read_input_from_mem⚠ | Reads array of bytes from a given |
read_len⚠ | Reads |
write_result_to_mem⚠ | Allocates 'RESULT_SIZE_BYTES + result.len()' bytes and writes length of the result as little
endianes RESULT_SIZE_BYTES bytes and then writes content of 'result'. So the final layout of
the result in memory is following:
|
Type Definitions
MemResult | Result type for this module. |