mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
25 lines
396 B
Go
25 lines
396 B
Go
package core
|
|
|
|
import (
|
|
"github.com/wencaiwulue/kubevpn/config"
|
|
"sync"
|
|
)
|
|
|
|
var (
|
|
SPool = &sync.Pool{
|
|
New: func() interface{} {
|
|
return make([]byte, config.SmallBufferSize)
|
|
},
|
|
}
|
|
MPool = &sync.Pool{
|
|
New: func() interface{} {
|
|
return make([]byte, config.MediumBufferSize)
|
|
},
|
|
}
|
|
LPool = &sync.Pool{
|
|
New: func() interface{} {
|
|
return make([]byte, config.LargeBufferSize)
|
|
},
|
|
}
|
|
)
|