MCPcopy Create free account
hub / github.com/HyBuildNet/quic-relay / GetBuffer

Function GetBuffer

internal/handler/bufpool.go:17–19  ·  view source on GitHub ↗

GetBuffer returns a buffer from the pool. Caller must return it via PutBuffer after use.

()

Source from the content-addressed store, hash-verified

15// GetBuffer returns a buffer from the pool.
16// Caller must return it via PutBuffer after use.
17func GetBuffer() *[]byte {
18 return packetPool.Get().(*[]byte)
19}
20
21// PutBuffer returns a buffer to the pool.
22// Buffer contents are NOT cleared for performance.

Callers 5

RunMethod · 0.92
DecryptWithCachedCryptoFunction · 0.92
TestBufferPoolFunction · 0.92
backendToClientMethod · 0.85

Calls 1

GetMethod · 0.80

Tested by 2

TestBufferPoolFunction · 0.74