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

Function AcquireFrame

frame.go:119–124  ·  view source on GitHub ↗
(ftype FrameType)

Source from the content-addressed store, hash-verified

117}()
118
119func AcquireFrame(ftype FrameType) Frame {
120 fr := framePools[ftype].Get().(Frame)
121 fr.Reset()
122
123 return fr
124}
125
126func ReleaseFrame(fr Frame) {
127 framePools[fr.Type()].Put(fr)

Callers 15

makeHeadersFunction · 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
CloseMethod · 0.85

Calls 1

ResetMethod · 0.65

Tested by 2

makeHeadersFunction · 0.68
TestFrameWriteFunction · 0.68