clash/common/pool/pool.go

10 lines
145 B
Go

package pool
func Get(size int) []byte {
return defaultAllocator.Get(size)
}
func Put(buf []byte) error {
return defaultAllocator.Put(buf)
}