1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-08 12:00:42 +08:00
This commit is contained in:
源文雨
2025-02-24 23:52:18 +09:00
parent 8f413ecfdf
commit eec7c4821d
12 changed files with 626 additions and 0 deletions

12
pbuf/buffer.go Normal file
View 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)
}