fix: safe encode bits to check for 2^num_bits <= byte we are encoding

fix: I thought namedDeBruijn takes advantage of Binder for encoding and decoding.
It does not...
fix: Debruijn was being converted to NamedDeBruijn incorrectly
This commit is contained in:
microproofs
2023-06-30 23:06:38 -04:00
parent d641f731b7
commit 42544af799
3 changed files with 5 additions and 4 deletions

View File

@@ -320,6 +320,6 @@ impl Encoder {
self.buffer.push(chunk.len() as u8);
self.buffer.extend(chunk);
}
self.buffer.push(0);
self.buffer.push(0_u8);
}
}