mirror of https://github.com/v2ray/v2ray-core
comments
parent
7a641749a8
commit
5f6366d2fa
|
@ -6,6 +6,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Pool provides functionality to generate and recycle buffers on demand.
|
||||||
type Pool interface {
|
type Pool interface {
|
||||||
Allocate() *Buffer
|
Allocate() *Buffer
|
||||||
Free(*Buffer)
|
Free(*Buffer)
|
||||||
|
|
Loading…
Reference in New Issue