Files
fluxengine/tests/bitaccumulator.cc
2023-10-22 22:57:54 +02:00

18 lines
272 B
C++

#include "lib/globals.h"
#include "lib/bytes.h"
#include <assert.h>
int main(int argc, const char* argv[])
{
Bytes bytes;
ByteWriter bw(bytes);
BitWriter bitw(bw);
bitw.push(0x1e, 5);
bitw.flush();
assert(bytes == Bytes{0x1e});
return 0;
}