package ctypes

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ctypes.RootSource

Registration of OCaml values as roots

Sourceval create : 'a -> unit ptr

create v allocates storage for the address of the OCaml value v, registers the storage as a root, and returns its address.

Sourceval get : unit ptr -> 'a

get p retrieves the OCaml value whose address is stored at p.

Sourceval set : unit ptr -> 'a -> unit

set p v updates the OCaml value stored as a root at p.

Sourceval release : unit ptr -> unit

release p unregsiters the root p.

OCaml

Innovation. Community. Security.