mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-07-26 09:44:08 -04:00
refine buffer usage in kcp
This commit is contained in:
@@ -4,6 +4,11 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
type Pool interface {
|
||||
Allocate() *Buffer
|
||||
Free(*Buffer)
|
||||
}
|
||||
|
||||
type BufferPool struct {
|
||||
chain chan []byte
|
||||
allocator *sync.Pool
|
||||
|
||||
Reference in New Issue
Block a user