package extism

  1. Overview
  2. Docs

Module Type.Float32Source

32-bit float type

Sourcetype t = float
Sourceval encode : t -> string

Encode a value to a string

Sourceval decode : Bigstringaf.t -> (t, Error.t) result

Decode a value from a bigstring. The bigstring argument uses a direct pointer into the plugin memory, this means it shouldn't be stored outside of this function without being copied first

OCaml

Innovation. Community. Security.