Struct umash_sys::umash_sink [−][src]
#[repr(C)]pub struct umash_sink { pub poly_state: [umash_sink__bindgen_ty_1; 2], pub buf: [c_char; 32], pub oh: *const u64, pub oh_iter: u32, pub bufsz: u8, pub block_size: u8, pub large_umash: bool, pub hash_wanted: u8, pub oh_acc: umash_sink_umash_oh, pub oh_twisted: umash_sink_umash_twisted_oh, pub seed: u64, }
Expand description
This struct holds the state for incremental UMASH hashing or fingerprinting.
A sink owns no allocation, and simply borrows a pointer to its
umash_params
. It can be byte-copied to snapshot its state.
The layout works best with alignment to 64 bytes, but does not require it.
Fields
poly_state: [umash_sink__bindgen_ty_1; 2]
buf: [c_char; 32]
oh: *const u64
oh_iter: u32
bufsz: u8
block_size: u8
large_umash: bool
hash_wanted: u8
oh_acc: umash_sink_umash_oh
oh_twisted: umash_sink_umash_twisted_oh
seed: u64
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for umash_sink
impl !Send for umash_sink
impl !Sync for umash_sink
impl Unpin for umash_sink
impl UnwindSafe for umash_sink
Blanket Implementations
Mutably borrows from an owned value. Read more