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
(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright © 2021-2026 OCamlPro *)
(* Written by the Owi programmers *)

module type T = sig
  type reference

  type t

  val get : t -> int -> reference

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

  val size : t -> int

  val typ : t -> Binary.ref_type

  val get_type : t -> Binary.Table.Type.t

  val max_size : t -> int option

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

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

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

  val init : Binary.Table.Type.t -> t

  val pp : t Fmt.t
end