rem: if (a.ReadAt(0, abuf, alen) == B_OK) { if (b.ReadAt(0, bbuf, blen) == B_OK) {
add: if (a.ReadAt(0, abuf, alen) == alen) { if (b.ReadAt(0, bbuf, blen) == blen) {
context: CompareStreams(BPositionIO &a, BPositionIO &b){	off_t alen = 0, blen = 0;	uint8 *abuf = NULL, *bbuf = NULL;		a.Seek(0, SEEK_END);	alen = a.Position();	b.Seek(0, SEEK_END);	blen = b.Position();		if (alen != blen)		return false;	bool bresult = false;			abuf = new uint8[alen];	bbuf = new uint8[blen];	if (a.ReadAt(0, abuf, alen) == B_OK) {		if (b.ReadAt(0, bbuf, blen) == B_OK) {			if (memcmp(abuf, bbuf, alen) == 0)				bresult = true;			else				bresult = false;		}	}			delete[] abuf;	abuf = NULL;	delete[] bbuf;	bbuf = NULL;		return bresult;}