package binaryen

  1. Overview
  2. Docs

Module Binaryen.MemorySource

Sourcetype segment = {
  1. data : bytes;
  2. kind : segment_kind;
  3. size : int;
}
Sourceand segment_kind =
  1. | Passive
  2. | Active of {
    1. offset : Expression.t;
    }
Sourceval set_memory : Module.t -> int -> int -> string -> segment list -> bool -> bool -> string -> unit
Sourceval has_memory : Module.t -> bool
Sourceval get_initial : Module.t -> string -> int
Sourceval has_max : Module.t -> string -> bool
Sourceval get_max : Module.t -> string -> int
Sourceval is_shared : Module.t -> string -> bool
Sourceval is_64 : Module.t -> string -> bool
Sourceval unlimited : int
Sourceval get_num_segments : Module.t -> int
Sourceval get_segment_byte_offset : Module.t -> int -> int
Sourceval get_segment_passive : Module.t -> int -> bool
Sourceval get_segment_data : Module.t -> int -> bytes
OCaml

Innovation. Community. Security.