block-db 0.2.0

Local, multi-threaded, durable byte DB.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Authors: Robert Lopez

use super::DataFile;
use crate::size::ByteSize;

impl DataFile {
    pub fn byte_size(&self) -> ByteSize {
        ByteSize {
            used_bytes: self.used_bytes,
            free_bytes: self.free_bytes,
        }
    }
}