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
module type T = sig
  type reference

  type 'a choice

  type t

  val get : t -> int -> reference

  val set : t -> int -> reference -> unit choice

  val size : t -> int

  val typ : t -> Text.ref_type

  val max_size : t -> int option

  val grow : t -> Int32.t -> reference -> unit choice

  val fill : t -> Int32.t -> Int32.t -> reference -> unit choice

  val copy :
       t_src:t
    -> t_dst:t
    -> src:Int32.t
    -> dst:Int32.t
    -> len:Int32.t
    -> unit choice
end