mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-17 19:19:11 -04:00
refine buffer usage in kcp
This commit is contained in:
@@ -346,7 +346,7 @@ func (this *SendingWorker) Push(b []byte) int {
|
||||
} else {
|
||||
size = len(b)
|
||||
}
|
||||
this.queue.Push(alloc.NewSmallBuffer().Clear().Append(b[:size]))
|
||||
this.queue.Push(AllocateBuffer().Clear().Append(b[:size]))
|
||||
b = b[size:]
|
||||
nBytes += size
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user