1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#[repr(C)]
#[derive(Debug, Copy)]
pub struct br_hash_class_
{
pub context_size: usize,
pub desc: u32,
pub init: Option<unsafe extern "C" fn(ctx: *mut *const br_hash_class)>,
pub update: Option<unsafe extern "C" fn(ctx: *mut *const br_hash_class, data: *const c_void, len: usize)>,
pub out: Option<unsafe extern "C" fn(ctx: *const *const br_hash_class, dst: *mut c_void)>,
pub state: Option<unsafe extern "C" fn(ctx: *const *const br_hash_class, dst: *mut c_void) -> u64>,
pub set_state: Option<unsafe extern "C" fn(ctx: *mut *const br_hash_class, stb: *const c_void, count: u64)>,
}
impl Clone for br_hash_class_
{
#[inline(always)]
fn clone(&self) -> Self
{
*self
}
}
impl Default for br_hash_class_
{
#[inline(always)]
fn default() -> Self
{
unsafe { zeroed() }
}
}