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_product_return_code ๐Ÿ”’
Checks the return code from SzProduct FFI functions
check_return_code ๐Ÿ”’
Checks the return code from Senzing FFI functions
check_return_code_i64 ๐Ÿ”’ Deprecated
Checks the return code from Senzing FFI functions (deprecated alias)
optional_str_to_c_ptr ๐Ÿ”’
Converts an optional Rust string to a C string pointer
process_config_mgr_long_result ๐Ÿ”’
Processes an SzLongResult from config manager helper functions
process_config_mgr_pointer_result ๐Ÿ”’ โš 
Processes an SzPointerResult from config manager helper functions
process_config_pointer_result ๐Ÿ”’ โš 
Processes an SzPointerResult from config helper functions
process_config_pointer_result_bytes ๐Ÿ”’ โš 
Processes an SzPointerResult from config helper functions and returns raw bytes
process_engine_pointer_result ๐Ÿ”’ โš 
Processes an SzPointerResult from engine helper functions
process_long_result ๐Ÿ”’
Processes an SzLongResult from helper functions
process_pointer_result ๐Ÿ”’ โš 
Processes an SzPointerResult from helper functions
str_to_c_string ๐Ÿ”’
Converts a Rust string to a C string (Internal)