mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
字节数组池
This commit is contained in:
11
bytePool/byte_pool_test.go
Normal file
11
bytePool/byte_pool_test.go
Normal file
@ -0,0 +1,11 @@
|
||||
package bytecache
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestByteCache(t *testing.T) {
|
||||
bp := NewBytePool(512, 1024, 1024)
|
||||
buffer := bp.Get()
|
||||
defer bp.Put(buffer)
|
||||
|
||||
t.Log(len(buffer))
|
||||
}
|
Reference in New Issue
Block a user