Mavryk_webassembly_interpreter.Partial_memoryinclude Memory_sig.Stype t = memoryval alloc : Types.memory_type -> memoryval type_of : memory -> Types.memory_typeval bound : memory -> int64val load_byte : memory -> int64 -> int Lwt.tval store_byte : memory -> int64 -> int -> unit Lwt.tval load_num :
memory ->
address ->
offset ->
Types.num_type ->
Values.num Lwt.tval store_num : memory -> address -> offset -> Values.num -> unit Lwt.tval load_num_packed :
Types.pack_size ->
Types.extension ->
memory ->
address ->
offset ->
Types.num_type ->
Values.num Lwt.tval store_num_packed :
Types.pack_size ->
memory ->
address ->
offset ->
Values.num ->
unit Lwt.tval load_vec :
memory ->
address ->
offset ->
Types.vec_type ->
Values.vec Lwt.tval store_vec : memory -> address -> offset -> Values.vec -> unit Lwt.tval load_vec_packed :
Types.pack_size ->
Types.vec_extension ->
memory ->
address ->
offset ->
Types.vec_type ->
Values.vec Lwt.tstore_bytes_from_bytes memory offset bytes copies the contents of bytes into memory at the provided offset. Further modifications to bytes are not reflected in memory.
val of_chunks :
Types.memory_type ->
Mavryk_lazy_containers.Chunked_byte_vector.t ->
tof_chunks mem_ty chunks creates a memory instance using chunks. Modifications are reflected bidirectionally, i.e. modifying the memory changes the chunks and vice versa.
val content : memory -> Mavryk_lazy_containers.Chunked_byte_vector.t