修改网络内存池接口

This commit is contained in:
boyce
2020-12-14 14:28:22 +08:00
parent ddef1e7165
commit e25eda14d1
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ func (areaPool *memAreaPool) releaseByteSlice(byteBuff []byte) bool{
return true
}
func makeByteSlice(size int) []byte{
func MakeByteSlice(size int) []byte{
for i:=0;i<len(memAreaPoolList);i++{
if size <= memAreaPoolList[i].maxAreaValue {