Module Ctypes_helpers.Reachable_ptr
val typ : 'a Ctypes_static.typ -> 'a t Ctypes_static.typ
Ctypes type.
val setf : ('b, 'c) Ctypes.structured -> ('a t, ('b, 'c) Ctypes.structured) Ctypes.field -> 'a Ctypes.ptr -> unit
Combine
Ctypes.setf
andcreate
. The parent object is set to the structured value.
val getf : ('b, 'c) Ctypes.structured -> ('a t, ('b, 'c) Ctypes.structured) Ctypes.field -> 'a Ctypes.ptr
Call
Ctypes.getf
and unwrap the result.
val is_null : 'a t -> bool
Call
Ctypes.is_null
on the underlying pointer