#include <iostream>
#include "binbuf.h"
int main()
{
BinaryBuffer buf;
buf.put(15);
buf.put16(2498);
buf.put32(19878);
buf.put16(998);
buf.puts("gooberocity");
buf.put32(-38734);
buf.puts("nibbles");
buf.put(3);
buf.dump();
buf.reset_loc();
std::cout << std::dec
<< (int)buf.get() << " " << buf.get16() << " " << buf.get32()
<< " " << buf.get16() << " " << buf.gets() << " "
<< (int)buf.get32() << " " << buf.gets() << " "
<< (int)buf.get() << std::endl;
}