more comments, sync check

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2022-12-23 22:32:30 -05:00
parent 72cee6ac13
commit 3c50c81b69
20 changed files with 298 additions and 46 deletions

View File

@@ -3,26 +3,27 @@
use super::Block;
/// Builds a block
/// Builds a block.
pub struct BlockBuilder {}
impl BlockBuilder {
/// Creates a new block builder
pub fn new(target_size: usize) -> Self {
/// Creates a new block builder.
pub fn new(block_size: usize) -> Self {
unimplemented!()
}
/// Adds a key-value pair to the block
/// Adds a key-value pair to the block. Returns false when the block is full.
#[must_use]
pub fn add(&mut self, key: &[u8], value: &[u8]) -> bool {
unimplemented!()
}
/// Check if there is no key-value pair in the block.
pub fn is_empty(&self) -> bool {
unimplemented!()
}
/// Builds a block
/// Finalize the block.
pub fn build(self) -> Block {
unimplemented!()
}