Function tari_wallet_ffi::wallet_get_value [−][src]
#[no_mangle]pub unsafe extern "C" fn wallet_get_value(
wallet: *mut TariWallet,
key: *const c_char,
error_out: *mut c_int
) -> *mut c_char
get a stored Value that was previously stored in the Wallet storage used for Client Key Value store
Arguments
wallet
- The TariWallet pointer.
key
- The pointer to a Utf8 string representing the Key
error_out
- Pointer to an int which will be modified to an error code should one occur, may not be null. Functions
as an out parameter.
Returns
*mut c_char
- Returns a pointer to a char array of the Value string. Note that it returns an null pointer if an
error occured.
Safety
The string_destroy
method must be called when finished with a string from rust to prevent a memory leak