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

Method choose

polyamide/device/allowedips.go:69–71  ·  view source on GitHub ↗
(ip []byte)

Source from the content-addressed store, hash-verified

67}
68
69func (node *trieEntry) choose(ip []byte) byte {
70 return (ip[node.bitAtByte] >> node.bitAtShift) & 1
71}
72
73func (node *trieEntry) maskSelf() {
74 mask := net.CIDRMask(int(node.cidr), len(node.bits)*8)

Callers 3

nodePlacementMethod · 0.95
insertMethod · 0.95
lookupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected