mirror of
https://github.com/pyihe/go-pkg.git
synced 2025-10-05 16:06:58 +08:00
feature(buffers): add buffers
This commit is contained in:
@@ -5,18 +5,6 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/pyihe/go-pkg/errors"
|
||||
"github.com/valyala/bytebufferpool"
|
||||
)
|
||||
|
||||
type ByteBuffer = bytebufferpool.ByteBuffer
|
||||
|
||||
var (
|
||||
Get = bytebufferpool.Get
|
||||
Put = func(b *ByteBuffer) {
|
||||
if b != nil {
|
||||
bytebufferpool.Put(b)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
func Int64(b []byte) (v int64, err error) {
|
||||
|
Reference in New Issue
Block a user