Bytes returns a slice of the contents of the unread portion of the buffer; len(b.Bytes()) == b.Len(). If the caller changes the contents of the returned slice, the contents of the buffer will change provided there are no intervening method calls on the Buffer.
()
| 90 | // returned slice, the contents of the buffer will change provided there |
| 91 | // are no intervening method calls on the Buffer. |
| 92 | func (b *Buffer) Bytes() []byte { return b.buf[b.off:] } |
| 93 | |
| 94 | // String returns the contents of the unread portion of the buffer |
| 95 | // as a string. If the Buffer is a nil pointer, it returns "<nil>". |
no outgoing calls