FFI Binding to C
Dependencies
moon add tonyfettes/c{
"import": [
"tonyfettes/c"
]
}fn init {
ignore(@c.moonbit_ffi_make_closure)
}This prevents the closure help function from being eliminated by the MoonBit
compiler.trait BytesLiketrait Decrefpub(open) trait Sizeof {
sizeof() -> UInt64
}#deprecated("Nullable[T] can leak memory if T is a managed type. Define a null value for type `T` yourself instead.")
#external
pub type Nullable[_]#alias(Ptr)
#external
pub type Pointer[_]FFI Binding to C
Dependencies