mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-26 04:05:39 +08:00
10 lines
145 B
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)
|
|
}
|