Module serde_fressian::wasm

source ·

Functions

for js consumers: request memory of the given byte length and return a pointer to it
for js consumers: return ownership of the bytes back to rust and drop them
Given a pointer and length from javascript, deserialize fressian bytes to rust data structures. This does not take ownership of the bytes pointed to! The pointer & length should be kept so that the bytes can be returned and dropped according to the needs of your deserialized value.
Serialize to bytes and give ownership to javascript via a pointer.