MCPcopy Create free account
hub / github.com/valyala/bytebufferpool / Put

Function Put

pool.go:62–62  ·  view source on GitHub ↗

Put returns byte buffer to the pool. ByteBuffer.B mustn't be touched after returning it to the pool. Otherwise data races will occur.

(b *ByteBuffer)

Source from the content-addressed store, hash-verified

60// ByteBuffer.B mustn't be touched after returning it to the pool.
61// Otherwise data races will occur.
62func Put(b *ByteBuffer) { defaultPool.Put(b) }
63
64// Put releases byte buffer obtained via Get to the pool.
65//

Callers 3

testByteBufferGetPutFunction · 0.85
testByteBufferGetStringFunction · 0.85
testGetPutFunction · 0.85

Calls 1

PutMethod · 0.80

Tested by 3

testByteBufferGetPutFunction · 0.68
testByteBufferGetStringFunction · 0.68
testGetPutFunction · 0.68