Function tari_wallet_ffi::public_key_get_bytes [−][src]
#[no_mangle]pub unsafe extern "C" fn public_key_get_bytes(
pk: *mut TariPublicKey,
error_out: *mut c_int
) -> *mut ByteVector
Gets a ByteVector from a TariPublicKey
Arguments
pk
- The pointer to a TariPublicKey
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 ByteVector
- Returns a pointer to a ByteVector. Note that it returns ptr::null_mut() if pk is null
Safety
The byte_vector_destroy
function must be called when finished with the ByteVector to prevent a memory leak.