+void XMLBuffer::copy_from(XMLBuffer *xbuf)
+{
+ if( bsz != xbuf->bsz ) { delete [] bfr; bfr = 0; }
+ if( !bfr ) bfr = new unsigned char[bsz = xbuf->bsz];
+ lmt = bfr + bsz;
+ long ilen = xbuf->otell(), olen = xbuf->itell();
+ inp = pos(ilen);
+ outp = pos(olen);
+ if( ilen > 0 )
+ memmove(bfr, xbuf->bfr, ilen);
+ destroy = xbuf->destroy;
+}
+