Ffi¶
Import: import system;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
Ffi¶
Reads through C pointers from @c callbacks (char**, char*).
host_read_ptr¶
Reads the pointer at index from a valid foreign pointer array.
host_read_cstring¶
Copies a valid null-terminated foreign string into a Dream string.
host_read_i32¶
Reads the 32-bit integer at index from valid foreign storage.
host_read_i64¶
Reads the 64-bit integer at index from valid foreign storage.
host_read_f64¶
Reads the double at index from valid foreign storage.
read_int¶
((int32_t*)base)[index].
read_long¶
((int64_t*)base)[index].
read_double¶
((double*)base)[index].
read_ptr¶
((void**)base)[index]. A NULL base reads NULL.
read_cstring¶
Copies the NUL-terminated UTF-8 C string at ptr into a Dream string; None for NULL.