Mojo module
ffi
Implements a foreign functions interface (FFI).
Aliases
-
c_char = SIMD[int8, 1]
: Cchar
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_size_t = UInt
: Csize_t
type. -
c_ssize_t = Int
: Cssize_t
type. -
c_uint = SIMD[uint32, 1]
: Cunsigned int
type. -
DEFAULT_RTLD = 2.__or__(256 if eq(:string target_get_field(current_target(), "os"), "linux") else 8)
: -
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!