mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-05 10:10:30 +08:00
13 lines
212 B
Go
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)
|
|
}
|