feat(docs): finish part 1

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2022-12-23 23:45:09 -05:00
parent 9f3e29c781
commit a03cb765ff
7 changed files with 146 additions and 4 deletions

View File

@@ -30,7 +30,6 @@ impl BlockBuilder {
#[must_use]
pub fn add(&mut self, key: &[u8], value: &[u8]) -> bool {
assert!(!key.is_empty(), "key must not be empty");
assert!(!value.is_empty(), "value must not be empty");
if self.estimated_size() + key.len() + value.len() + SIZEOF_U16 * 3 > self.block_size
&& !self.is_empty()
{