Skip to main content

Mojo module

ffi

Implements a foreign functions interface (FFI).

Aliases

  • C_char = SIMD[int8, 1]: C char type.
  • C_int = SIMD[int32, 1]: C int type.
  • C_long = SIMD[_c_long_dtype(), 1]: C long type.
  • C_long_long = SIMD[_c_long_long_dtype(), 1]: C long long type.
  • DEFAULT_RTLD = __or__(2, 256 if eq(:string target_get_field(current_target(), "os"), "linux") else 8):

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

Was this page helpful?