ForeignCodeLib
nitc :: ForeignCodeEntry :: defaultinit
nitc $ ForeignCodeEntry :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Pointer :: defaultinit
core :: Object :: defaultinit
nitc :: ForeignCodeEntry :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha value
# Handle to an implementation function in a `ForeignCodeLib`
private extern class ForeignCodeEntry`{ nit_foreign_lib_entry `}
# Invoke the implementation function by passing `args` and receive the return value
fun call(argc: Int, args, ret: CallArg): Bool `{
return ((nit_foreign_lib_entry)self)(argc, args, ret);
`}
end
src/interpreter/dynamic_loading_ffi/dynamic_loading_ffi.nit:240,1--247,3