chore: cleanup allocator code

This commit is contained in:
wwqgtxx
2025-06-10 10:54:08 +08:00
parent 255ff5e977
commit 01f8f2db2f
5 changed files with 22 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
package pool
func Get(size int) []byte {
return defaultAllocator.Get(size)
return DefaultAllocator.Get(size)
}
func Put(buf []byte) error {
return defaultAllocator.Put(buf)
return DefaultAllocator.Put(buf)
}