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

Method maskSelf

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

Source from the content-addressed store, hash-verified

71}
72
73func (node *trieEntry) maskSelf() {
74 mask := net.CIDRMask(int(node.cidr), len(node.bits)*8)
75 for i := 0; i < len(mask); i++ {
76 node.bits[i] &= mask[i]
77 }
78}
79
80func (node *trieEntry) zeroizePointers() {
81 // Make the garbage collector's life slightly easier

Callers 1

insertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected