MCPcopy
hub / github.com/valyala/quicktemplate / ReleaseByteBuffer

Function ReleaseByteBuffer

bytebuffer.go:37–39  ·  view source on GitHub ↗

ReleaseByteBuffer retruns byte buffer to the pool. Do not access byte buffer after returning it to the pool, otherwise data races may occur.

(b *ByteBuffer)

Source from the content-addressed store, hash-verified

35// Do not access byte buffer after returning it to the pool,
36// otherwise data races may occur.
37func ReleaseByteBuffer(b *ByteBuffer) {
38 byteBufferPool.Put(bb(b))
39}
40
41func bb(b *ByteBuffer) *bytebufferpool.ByteBuffer {
42 return (*bytebufferpool.ByteBuffer)(b)

Callers 15

TestParseFileFunction · 0.92
initFunction · 0.92
benchmarkMarshalJSONStdFunction · 0.92
benchmarkMarshalXMLStdFunction · 0.92
benchmarkQuickTemplateFunction · 0.92
benchmarkHTMLTemplateFunction · 0.92
benchmarkTextTemplateFunction · 0.92
testHTMLEscapeWriterFunction · 0.85
TestWriterFunction · 0.85
testQWriterFunction · 0.85

Calls 1

bbFunction · 0.85

Tested by 15

TestParseFileFunction · 0.74
initFunction · 0.74
benchmarkMarshalJSONStdFunction · 0.74
benchmarkMarshalXMLStdFunction · 0.74
benchmarkQuickTemplateFunction · 0.74
benchmarkHTMLTemplateFunction · 0.74
benchmarkTextTemplateFunction · 0.74
testHTMLEscapeWriterFunction · 0.68
TestWriterFunction · 0.68
testQWriterFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…