MCPcopy
hub / github.com/OpenNHP/opennhp / ReleasePoolPacket

Method ReleasePoolPacket

nhp/core/packet.go:269–275  ·  view source on GitHub ↗
(pkt *Packet)

Source from the content-addressed store, hash-verified

267}
268
269func (d *Device) ReleasePoolPacket(pkt *Packet) {
270 if pkt != nil && pkt.Buf != nil && pkt.PoolAllocated {
271 d.pool.Put(pkt.Buf)
272 pkt.Buf = nil
273 pkt.Content = nil
274 }
275}

Callers 15

DestroyMethod · 0.80
DestroyMethod · 0.80
CloseMethod · 0.80
ForwardOutboundPacketMethod · 0.80
ForwardInboundPacketMethod · 0.80
SendPacketMethod · 0.80
recvPacketRoutineMethod · 0.80
connectionRoutineMethod · 0.80
HandleRelayForwardMethod · 0.80
SendPacketMethod · 0.80
recvPacketRoutineMethod · 0.80
connectionRoutineMethod · 0.80

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected