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

Function AcquireByteBuffer

bytebuffer.go:29–31  ·  view source on GitHub ↗

AcquireByteBuffer returns new ByteBuffer from the pool. Return unneeded buffers to the pool by calling ReleaseByteBuffer in order to reduce memory allocations.

()

Source from the content-addressed store, hash-verified

27// Return unneeded buffers to the pool by calling ReleaseByteBuffer
28// in order to reduce memory allocations.
29func AcquireByteBuffer() *ByteBuffer {
30 return (*ByteBuffer)(byteBufferPool.Get())
31}
32
33// ReleaseByteBuffer retruns byte buffer to the pool.
34//

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

no outgoing calls

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…