#[no_mangle]
pub unsafe extern "C" fn iohk_jormungandr_block_date_from_system_time(
    settings: *const Settings,
    date: u64,
    block_date_out: *mut BlockDate
) -> ErrorPtr
Expand description

This function dereference raw pointers. Even though the function checks if the pointers are null. Mind not to put random values in or you may see unexpected behaviors.

Arguments

settings: the blockchain settings previously allocated with this library.
date: desired date of expiration for a fragment. It must be expressed in seconds since the unix epoch. block_date_out: pointer to an allocated BlockDate structure, the memory should be writable.

Safety

pointers should be allocated by this library and be valid. null pointers are checked and will result in an error.