MCPcopy
hub / github.com/deepflowio/deepflow / AcquireByteBuffer

Function AcquireByteBuffer

server/libs/utils/byte_buffer.go:60–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58})
59
60func AcquireByteBuffer() *ByteBuffer {
61 b := byteBufferPool.Get()
62 b.ReferenceCount.Reset()
63 return b
64}
65
66func CloneByteBuffer(bytes *ByteBuffer) *ByteBuffer {
67 clone := AcquireByteBuffer()

Callers 1

CloneByteBufferFunction · 0.85

Calls 2

GetMethod · 0.65
ResetMethod · 0.65

Tested by

no test coverage detected