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

Function ReleaseFrameHeader

frameHeader.go:69–72  ·  view source on GitHub ↗

ReleaseFrameHeader reset and puts fr to the pool.

(fr *FrameHeader)

Source from the content-addressed store, hash-verified

67
68// ReleaseFrameHeader reset and puts fr to the pool.
69func ReleaseFrameHeader(fr *FrameHeader) {
70 ReleaseFrame(fr.Body())
71 frameHeaderPool.Put(fr)
72}
73
74// Reset resets header values.
75func (f *FrameHeader) Reset() {

Callers 14

readLoopMethod · 0.85
writeLoopMethod · 0.85
HandshakeFunction · 0.85
doHandshakeMethod · 0.85
CloseMethod · 0.85
writeLoopMethod · 0.85
readLoopMethod · 0.85
writeRequestMethod · 0.85
readNextMethod · 0.85
writePingMethod · 0.85
ReadFrameFromFunction · 0.85
ReadFrameFromWithSizeFunction · 0.85

Calls 2

ReleaseFrameFunction · 0.85
BodyMethod · 0.80

Tested by 2

TestFrameWriteFunction · 0.68
TestFrameReadFunction · 0.68