func (r *ReadBuffer) ReadByte() (byte, error) {
	if r.err != nil {
		return 0, r.err
	}

	if len(r.remaining) < 1 {
		r.err = ErrEOF
		return 0, r.err
	}

	b := r.remaining[0]
	r.remaining = r.remaining[1:]
	return b, nil
}
func (r *ReadBuffer) ReadByte() (byte, error) {
	if r.err != nil {
		return 0, r.err
	}

	if len(r.remaining) < 1 {
		r.err = ErrEOF
		return 0, r.err
	}

	b := r.remaining[0]
	r.remaining = r.remaining[1:]
	return b, nil
}
func ( r * ReadBuffer ) ReadByte ( ) ( byte , error ) { if r . err != nil { return 0 , r . err } if len ( r . remaining ) < 1 { r . err = ErrEOF return 0 , r . err } b := r . remaining [ 0 ] r . remaining = r . remaining [ 1 : ] return b , nil }
// ReadByte returns the next byte from the buffer.
ReadByte returns the next byte from the buffer .