github.com/kelleygo/clashcore@v1.0.2/common/pool/pool.go (about) 1 package pool 2 3 func Get(size int) []byte { 4 return defaultAllocator.Get(size) 5 } 6 7 func Put(buf []byte) error { 8 return defaultAllocator.Put(buf) 9 }