package binaryen

  1. Overview
  2. Docs
type segment = {
  1. data : bytes;
  2. kind : segment_kind;
  3. size : int;
}
and segment_kind =
  1. | Passive
  2. | Active of {
    1. offset : Expression.t;
    }
val set_memory : Module.t -> int -> int -> string -> segment list -> bool -> unit
val has_memory : Module.t -> bool
val get_initial : Module.t -> int
val has_max : Module.t -> bool
val get_max : Module.t -> int
val is_shared : Module.t -> bool
val unlimited : int
OCaml

Innovation. Community. Security.