Module helpers

Module helpers 

Source
Expand description

Helper functions for FFI operations

Structsยง

ResponseBuffer ๐Ÿ”’
Handles memory allocation for FFI response strings

Functionsยง

c_str_to_bytes ๐Ÿ”’ โš 
Converts C string to raw bytes for handle storage
c_str_to_string ๐Ÿ”’ โš 
Converts a C string pointer to a Rust string and frees the C string
c_str_to_string_no_free ๐Ÿ”’ โš 
Converts C string to Rust string without freeing the memory (for static/managed strings)
check_config_mgr_return_code ๐Ÿ”’
Checks the return code from Senzing ConfigMgr FFI functions
check_config_return_code ๐Ÿ”’
Checks the return code from Senzing Config FFI functions
check_diagnostic_return_code ๐Ÿ”’
Checks the return code from SzDiagnostic FFI functions
check_product_return_code ๐Ÿ”’
Checks the return code from SzProduct FFI functions
check_return_code ๐Ÿ”’
Checks the return code from Senzing Engine FFI functions
str_to_c_string ๐Ÿ”’
Converts a Rust string to a C string (Internal)
sz_free ๐Ÿ”’ โš 
Frees memory allocated by Senzing helper functions