From 374ca2159407c6f3ec786bc19e25da44ded62fcf Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 11:22:29 +0800 Subject: internal/bufpool: Split files --- internal/bufpool/bytes.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 internal/bufpool/bytes.go (limited to 'internal/bufpool/bytes.go') diff --git a/internal/bufpool/bytes.go b/internal/bufpool/bytes.go new file mode 100644 index 00000000..bcefbdfd --- /dev/null +++ b/internal/bufpool/bytes.go @@ -0,0 +1,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 +} -- cgit v1.3.1-10-gc9f91