public override void WriteByte(byte b) { if (bufferPosition >= BUFFER_SIZE) Flush(); buffer[bufferPosition++] = b; }