MCPcopy Create free account
hub / github.com/encodeous/nylon / zeroizePointers

Method zeroizePointers

polyamide/device/allowedips.go:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func (node *trieEntry) zeroizePointers() {
81 // Make the garbage collector's life slightly easier
82 node.peer = nil
83 node.child[0] = nil
84 node.child[1] = nil
85 node.parent.parentBit = nil
86}
87
88func (node *trieEntry) nodePlacement(ip []byte, cidr uint8) (parent *trieEntry, exact bool) {
89 for node != nil && node.cidr <= cidr && commonBits(node.bits, ip) >= node.cidr {

Callers 1

removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected