Skip to main content

sc_verify_ffi_layout

Function sc_verify_ffi_layout 

Source
pub unsafe extern "C" fn sc_verify_ffi_layout() -> bool
Expand description

Cross-language ABI check implemented in the Swift bridge.

Returns true only if the Swift MemoryLayout (size, stride and alignment) of all four FFI structs matches the values pinned on the Rust side. Verified by tests/ffi_layout_tests.rs.