Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
269
func
(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
Destroy
Method · 0.80
Destroy
Method · 0.80
Close
Method · 0.80
ForwardOutboundPacket
Method · 0.80
ForwardInboundPacket
Method · 0.80
SendPacket
Method · 0.80
recvPacketRoutine
Method · 0.80
connectionRoutine
Method · 0.80
HandleRelayForward
Method · 0.80
SendPacket
Method · 0.80
recvPacketRoutine
Method · 0.80
connectionRoutine
Method · 0.80
Calls
1
Put
Method · 0.45
Tested by
no test coverage detected