lkv 0.2.0

A lightweight and fast embedded key-value store for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod log;
pub mod segment;
pub mod superblock;

#[inline]
fn u32_at(bytes: &[u8], offset: usize) -> u32 {
    u32::from_le_bytes(bytes[offset..offset + 4].try_into().unwrap())
}

#[inline]
fn u64_at(bytes: &[u8], offset: usize) -> u64 {
    u64::from_le_bytes(bytes[offset..offset + 8].try_into().unwrap())
}