aboutsummaryrefslogtreecommitdiff
path: root/internal/bufpool/bytes.go
blob: bcefbdfd4629353e18eab82a2beb6158626ceed8 (about) (plain) (blame)
1
2
3
4
5
6
7
package bufpool

// Bytes returns the underlying byte slice that represents the current contents
// of the buffer. Modifying the returned slice modifies the Buffer itself.
func (buf *Buffer) Bytes() []byte {
	return buf.buf
}