MCPcopy Create free account
hub / github.com/dgrr/http2 / AcquireFrameHeader

Function AcquireFrameHeader

frameHeader.go:62–66  ·  view source on GitHub ↗

AcquireFrameHeader gets a FrameHeader from pool.

()

Source from the content-addressed store, hash-verified

60
61// AcquireFrameHeader gets a FrameHeader from pool.
62func AcquireFrameHeader() *FrameHeader {
63 fr := frameHeaderPool.Get().(*FrameHeader)
64 fr.Reset()
65 return fr
66}
67
68// ReleaseFrameHeader reset and puts fr to the pool.
69func ReleaseFrameHeader(fr *FrameHeader) {

Callers 15

makeHeadersFunction · 0.85
handlePingMethod · 0.85
writePingMethod · 0.85
writeResetMethod · 0.85
writeGoAwayMethod · 0.85
handleEndRequestMethod · 0.85
WriteMethod · 0.85
ReadFromMethod · 0.85
writeDataMethod · 0.85
handleSettingsMethod · 0.85
HandshakeFunction · 0.85
doHandshakeMethod · 0.85

Calls 1

ResetMethod · 0.65

Tested by 3

makeHeadersFunction · 0.68
TestFrameWriteFunction · 0.68
TestFrameReadFunction · 0.68