1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright © 2021-2026 OCamlPro *)
(* Written by the Owi programmers *)
module type T = sig
type t
type i32
type i64
type v128
type 'a choice
val load_8_s : t -> i32 -> i32 choice
val load_8_u : t -> i32 -> i32 choice
val load_16_s : t -> i32 -> i32 choice
val load_16_u : t -> i32 -> i32 choice
val load_32 : t -> i32 -> i32 choice
val load_64 : t -> i32 -> i64 choice
val load_128 : t -> i32 -> v128 choice
val store_8 : t -> addr:i32 -> i32 -> t choice
val store_16 : t -> addr:i32 -> i32 -> t choice
val store_32 : t -> addr:i32 -> i32 -> t choice
val store_64 : t -> addr:i32 -> i64 -> t choice
val store_128 : t -> addr:i32 -> v128 -> t choice
val grow : t -> i32 -> t
val fill : t -> pos:i32 -> len:i32 -> char -> t choice
val blit : src:t -> src_idx:i32 -> dst:t -> dst_idx:i32 -> len:i32 -> t choice
val blit_string : t -> string -> src:i32 -> dst:i32 -> len:i32 -> t choice
val size : t -> i32
val size_in_pages : t -> i32
val get_limit_max : t -> int option
val get_limits : t -> Binary.Mem.Type.limits
val init : Binary.Mem.Type.limits -> t
end