1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 18:20:31 +08:00
Files
orbyte/pbuf/buffer.go
源文雨 eec7c4821d init
2025-02-24 23:52:18 +09:00

13 lines
212 B
Go

package pbuf
import (
"bytes"
"github.com/fumiama/orbyte"
)
// NewBuffer wraps bytes.NewBuffer
func (bufferPool BufferPool) NewBuffer(buf []byte) *orbyte.Item[bytes.Buffer] {
return bufferPool.p.New(buf)
}