Module Ctypes_helpers.Reachable_ptr

type 'a t
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 and create. 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