Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Array : module type of Ctypes.CArray
type t = {
raw : Unsigned.uint8 Array.t;
C array backing the memory
*)min : Unsigned.uint32;
Minimum memory size in pages (64 KiB)
*)max : Unsigned.uint32 option;
Maximum size in pages
*)}
WebAssembly memory
val get : t -> int -> Unsigned.uint8
get mem addr
reads a byte at address addr
.
val set : t -> int -> Unsigned.uint8 -> unit
set mem addr value
sets a byte at address addr
to value
.
val length : t -> int
length mem
gives you the memory size in bytes.
module Internal_for_tests : sig ... end