mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-25 19:55:38 +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)
|
|
}
|