flags placeholder

pull/1/head
Avril 5 years ago
parent e6edae7e99
commit 030b0f000d
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,3 +1,4 @@
#ifndef _KHASH_H
#define _KHASH_H
@ -38,6 +39,7 @@ extern "C" {
/// A valid context for khash functinos. Instantiated with `khash_new_context`.
typedef struct {
uint8_t algo;
uint64_t flags;
khash_salt salt;
} khash_ctx;

@ -74,6 +74,7 @@ impl Context
CContext{
algo: u8::from(self.algo),
salt: salt::into_raw(self.salt),
flags: Default::default(),
}
}
@ -121,6 +122,7 @@ pub const ALGO_SHA256_TRUNCATED: u8 = 4;
pub struct CContext
{
algo: u8,
flags: u64, //nothing yet, might be flags later idk
salt: salt::FFI,
}

Loading…
Cancel
Save