package extism
Module type Type.SSource
The interface for all types that can be converted between OCaml and Extism host memory
val encode : t -> stringEncode a value to a string
val decode : Bigstringaf.t -> (t, Error.t) resultDecode 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