mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user