Mavryk_scoru_wasm_durable_snapshot.DurableAttempted to write/read to/from a value at offset, beyond the limit.
val encoding : t Mavryk_tree_encoding.tencoding is a Mavryk_tree_encoding for t.
val of_storage :
default:t ->
Mavryk_webassembly_interpreter.Durable_storage.t ->
tval of_storage_exn : Mavryk_webassembly_interpreter.Durable_storage.t -> tval to_storage : t -> Mavryk_webassembly_interpreter.Durable_storage.tkey is the type that indexes t. It enforces several constraints:
val key_of_string_exn : string -> keyval key_of_string_opt : string -> key optionval find_value :
t ->
key ->
Mavryk_lazy_containers.Chunked_byte_vector.t option Lwt.tfind_value durable key optionally looks for the value encoded at key in durable.
val find_value_exn :
t ->
key ->
Mavryk_lazy_containers.Chunked_byte_vector.t Lwt.tcopy_tree_exn tree ?edit_readonly from_key to_key produces a new tree in which a copy of the entire subtree at from_key is copied to to_key.
~edit_readonly:true allows a tree to be copied into a readonly location.
move_tree_exn tree from_key to_key produces a new tree in which the entire subtree at from_key is moved to to_key.
count_subtrees durable key returns the number of subtrees under key.
subtree_name_at durable key n returns the name of the n_th subtree under key.
delete ?edit_readonly durable key deletes the value at and/or subtrees of key.
val hash : t -> key -> Mavryk_base.TzPervasives.Context_hash.t option Lwt.thash durable key retrieves the tree hash of the value at the given key. This is not the same as the hash of the value.
val hash_exn : t -> key -> Mavryk_base.TzPervasives.Context_hash.t Lwt.thash_exn durable key retrieves the tree hash of the value at the given key. This is not the same as the hash of the value.
set_value_exn durable key str installs the value str in durable under key, replacing any previous contents under this key without fetching it.
write_value_exn durable ?edit_readonly key offset bytes writes bytes to key, starting at the given offset.
If no value at key exists, it is created.
~edit_readonly:true allows a value to be written into a readonly location.
read_value_exn durable key offset max_bytes reads up to max_bytes bytes from the value at key, starting at the given offset.
module Internal_for_tests : sig ... end