mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-29 05:25:21 -05:00
remove 8k buffer pool
This commit is contained in:
@@ -181,11 +181,6 @@ func New() *Buffer {
|
||||
return mediumPool.Allocate()
|
||||
}
|
||||
|
||||
// NewSmall returns a buffer with 0 length and 2K capacity.
|
||||
func NewSmall() *Buffer {
|
||||
return smallPool.Allocate()
|
||||
}
|
||||
|
||||
// NewLocal creates and returns a buffer with 0 length and given capacity on current thread.
|
||||
func NewLocal(size int) *Buffer {
|
||||
return &Buffer{
|
||||
|
||||
Reference in New Issue
Block a user