bool destroy() { if (save) { int size = 0; const char *data = b.toBinary(&size); if ((unsigned int)size<obuflen) { memcpy(obuf,data,obuflen); } } return true; }
size_t getpos() { int size = 0; b.toBinary(&size); return size; }