mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-11 21:51:18 +08:00
feat: add Ignore to Item
This commit is contained in:
@@ -45,6 +45,11 @@ func NewBytes(sz int) Bytes {
|
|||||||
return bufferPool.NewBytes(sz)
|
return bufferPool.NewBytes(sz)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewBytes alloc sz bytes without involving.
|
||||||
|
func NewLargeBytes(sz int) Bytes {
|
||||||
|
return bufferPool.NewLargeBytes(sz)
|
||||||
|
}
|
||||||
|
|
||||||
// InvolveBytes involve outside buf into pool.
|
// InvolveBytes involve outside buf into pool.
|
||||||
func InvolveBytes(b ...byte) Bytes {
|
func InvolveBytes(b ...byte) Bytes {
|
||||||
return bufferPool.InvolveBytes(b...)
|
return bufferPool.InvolveBytes(b...)
|
||||||
|
|||||||
Reference in New Issue
Block a user