code: func (b *BufReader) Buffered() int {
  	d := b.w - b.r
  	if b.available != -1 && d > b.available {
  		return b.available
  	}
  	return d
  }
docs: // Buffered returns the number of bytes that can be read from the current buffer.