MDB_sum_func

Type Alias MDB_sum_func 

Source
pub type MDB_sum_func = Option<unsafe extern "C" fn(src: *const MDB_val, dst: *mut MDB_val, key: *const MDB_val)>;
Expand description

A callback function used to checksum pages in the env.

Compute the checksum of the data in src and store the result in dst, An optional key may be used with keyed hash algorithms.

§Arguments

  • src (direction in) - The input data to be transformed.
  • dst (direction out) - Storage for the result.
  • key (direction in) - An encryption key, if encryption was configured. This parameter will be NULL if there is no key.

Aliased Type§

pub enum MDB_sum_func {
    None,
    Some(unsafe extern "C" fn(*const MDB_val, *mut MDB_val, *const MDB_val)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const MDB_val, *mut MDB_val, *const MDB_val))

Some value of type T.