Crate cosmian_ffi_utils

Crate cosmian_ffi_utils 

Source

Modules§

error
macros

Macros§

ffi_bail
Returns with an error.
ffi_not_null
Asserts a pointer is not null.
ffi_read_bytes
Reads bytes from an FFI pointer with checks.
ffi_read_string
Reads a Rust string from the given pointer to a null-terminated C string.
ffi_unwrap
Unwraps an std::result::Result.
ffi_write_bytes
Writes the given bytes to FFI buffers with checks.

Enums§

ErrorCode
Error code for FFI code.