Mojo module
ffi
Implements a foreign functions interface (FFI).
Aliases
-
c_char = SIMD[int8, 1]
: Cchar
type. -
c_double = SIMD[float64, 1]
: Cdouble
type. -
c_float = SIMD[float32, 1]
: Cfloat
type. -
c_int = SIMD[int32, 1]
: Cint
type. -
c_long = SIMD[_c_long_dtype(), 1]
: Clong
type. -
c_long_long = SIMD[_c_long_long_dtype(), 1]
: Clong long
type. -
c_short = SIMD[int16, 1]
: Cshort
type. -
c_size_t = UInt
: Csize_t
type. -
c_ssize_t = Int
: Cssize_t
type. -
c_uchar = SIMD[uint8, 1]
: Cunsigned char
type. -
c_uint = SIMD[uint32, 1]
: Cunsigned int
type. -
c_ushort = SIMD[uint16, 1]
: Cunsigned short
type. -
DEFAULT_RTLD = IntLiteral(#kgen.int_literal_bin<#kgen.int_literal<2> : !kgen.int_literal, #lit.struct.extract<:@stdlib::@builtin::@int_literal::@IntLiteral cond(eq(:string target_get_field(current_target(), "os"), "linux"), {:!kgen.int_literal 256}, {:!kgen.int_literal 8}), "value"> : !kgen.int_literal, or>)
: -
OpaquePointer = UnsafePointer[NoneType]
: An opaque pointer, equivalent to the Cvoid*
type.
Structs
-
DLHandle
: Represents a dynamically linked library that can be loaded and unloaded. -
RTLD
: Enumeration of the RTLD flags used during dynamic library loading.
Functions
-
external_call
: Calls an external function.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!