mihomo/common/pool/pool.go

10 lines
145 B
Go
Raw Permalink Normal View History

2019-04-23 23:29:36 +08:00
package pool
2020-04-25 00:30:40 +08:00
func Get(size int) []byte {
return defaultAllocator.Get(size)
2020-04-25 00:30:40 +08:00
}
func Put(buf []byte) error {
return defaultAllocator.Put(buf)
2020-04-25 00:30:40 +08:00
}