1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-13 23:24:27 -05:00

revert buffer api change

This commit is contained in:
Darien Raymond
2016-11-19 21:13:00 +01:00
parent 87a8f7a953
commit 18cd10be2b
2 changed files with 11 additions and 13 deletions

View File

@@ -36,7 +36,7 @@ func (p *BufferPool) Allocate() *Buffer {
default:
b = p.allocator.Get().([]byte)
}
return CreateBuffer(b, defaultOffset, p)
return CreateBuffer(b, p)
}
func (p *BufferPool) Free(buffer *Buffer) {