public int ReadByte() { int n = _length - _position; if (n <= 0) return -1; return _buffer[_position++]; }