1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-12 08:45:25 -04:00

authenticator

This commit is contained in:
v2ray
2016-01-29 10:57:52 +01:00
parent 494f431c37
commit 06b92bddcf
4 changed files with 59 additions and 0 deletions

View File

@@ -5,6 +5,12 @@ import (
"sync"
)
func Release(buffer *Buffer) {
if buffer != nil {
buffer.Release()
}
}
// Buffer is a recyclable allocation of a byte array. Buffer.Release() recycles
// the buffer into an internal buffer pool, in order to recreate a buffer more
// quickly.