[][src]Module holochain_wasm_utils::memory_serialization

Functions

load_json

Retrieve a stored data struct from an encoded allocation. Return error string if encoded_allocation is invalid.

load_json_from_raw

Convert a json string stored in wasm memory into a specified struct If json deserialization of custom struct failed, tries to deserialize a RibosomeErrorReport struct. If that also failed, tries to load a string directly, since we are expecting an error string at this stage.

load_string

Retrieve a stored string from an encoded allocation. Return error string if encoded_allocation is invalid.

store_as_json

Write a data struct as a json string in wasm memory according to stack state.

store_json_into_encoded_allocation
store_string

Write a string in wasm memory according to stack state.

store_string_into_encoded_allocation