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

Function ReleaseByteBuffer

server/libs/utils/byte_buffer.go:77–83  ·  view source on GitHub ↗
(bytes *ByteBuffer)

Source from the content-addressed store, hash-verified

75}
76
77func ReleaseByteBuffer(bytes *ByteBuffer) {
78 if bytes.SubReferenceCount() {
79 return
80 }
81 bytes.Reset()
82 byteBufferPool.Put(bytes)
83}

Callers

nothing calls this directly

Calls 3

SubReferenceCountMethod · 0.65
ResetMethod · 0.65
PutMethod · 0.65

Tested by

no test coverage detected