Behemoth change to rework everything to use Bytes rather than vectors of

uint8_t. The tests pass, but of course, nothing decodes any more.
This commit is contained in:
David Given
2019-03-05 00:10:20 +01:00
parent 3835afd022
commit 94fb10eb02
31 changed files with 621 additions and 532 deletions

View File

@@ -4,11 +4,14 @@
int main(int argc, const char* argv[])
{
BitAccumulator ba;
Bytes bytes;
ByteWriter bw(bytes);
BitWriter bitw(bw);
ba.reset();
ba.push(0x1e, 5);
assert((std::vector<uint8_t>)ba == std::vector<uint8_t>{ 0x1e });
bitw.push(0x1e, 5);
bitw.flush();
assert(bytes == Bytes{ 0x1e });
return 0;
}