mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-15 00:04:46 +08:00
修改网络内存池接口
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user