MCPcopy Index your code
hub / github.com/deepflowio/deepflow / SetQuota

Method SetQuota

server/libs/utils/byte_buffer.go:52–54  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

50}
51
52func (b *ByteBuffer) SetQuota(n int) {
53 b.quota = n
54}
55
56var byteBufferPool = pool.NewLockFreePool(func() *ByteBuffer {
57 return &ByteBuffer{quota: 1 << 16}

Callers 1

TestByteBufferUseTwiceFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestByteBufferUseTwiceFunction · 0.76