1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

字节数组池

This commit is contained in:
2022-03-27 10:18:50 +08:00
parent 0c3a00ba36
commit 59ea343843
2 changed files with 47 additions and 0 deletions

View 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))
}