package DkSDKFFIOCaml_Std

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

Parameters

Signature

type 'inst t_author =
  1. | Capnp : (Capnp.Message.rw, 'struct_t) M.StructStorage.t -> _ t_author
  2. | New : 'inst -> 'inst t_author

The type of value that will be given to a return function, which is the API expected to be used by authors of DkSDK COM classes. The return value is either a single Cap n' Proto message of type Capnp 'builder, or a new instance of type New 'ret_inst. The type parameter 'inst is the type of the generic instance object whose method was called.

type ('inst, 'ret_inst) return = 'inst t_author -> (Capnp.Message.rw M.Message.t, Capnp.Message.ro M.Slice.t option, 'inst, 'ret_inst) t_return

The type of a function that can convert author-friendly t_author values into the t type needed by the DkSDK FFI APIs.

val return_from_closure : (Capnp.Message.rw, 'struct_t) M.StructStorage.t -> (Capnp.Message.rw M.Message.t, Capnp.Message.ro M.Slice.t option, _, _) t_return

The return value of a Com.closure

OCaml

Innovation. Community. Security.