mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-08 12:00:42 +08:00
init
This commit is contained in:
12
pbuf/buffer.go
Normal file
12
pbuf/buffer.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user