mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-26 11:44:22 -04:00
extend buffer
This commit is contained in:
parent
931c8597ca
commit
34c12c1af6
@ -208,6 +208,7 @@ func NewBytes(size uint32) []byte {
|
||||
|
||||
func FreeBytes(b []byte) {
|
||||
size := cap(b)
|
||||
b = b[0:cap(b)]
|
||||
switch {
|
||||
case size >= 128*1024:
|
||||
pool128k.Put(b)
|
||||
|
Loading…
x
Reference in New Issue
Block a user