Returns the number of bytes available in the write buffer.
@override int getBytesRemainingInBuffer() { return _endPos - _pos; }