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 -> string -> unit
val has_memory : Module.t -> bool
val get_initial : Module.t -> string -> int
val has_max : Module.t -> string -> bool
val get_max : Module.t -> string -> int
val is_shared : Module.t -> string -> bool
val unlimited : int
val get_num_segments : Module.t -> int
val get_segment_byte_offset : Module.t -> int -> int
val get_segment_passive : Module.t -> int -> bool
val get_segment_data : Module.t -> int -> bytes
OCaml

Innovation. Community. Security.