MCPcopy
hub / github.com/google/uuid / NodeID

Method NodeID

node.go:86–90  ·  view source on GitHub ↗

NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is not valid. The NodeID is only well defined for version 1 and 2 UUIDs.

()

Source from the content-addressed store, hash-verified

84// NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is
85// not valid. The NodeID is only well defined for version 1 and 2 UUIDs.
86func (uuid UUID) NodeID() []byte {
87 var node [6]byte
88 copy(node[:], uuid[10:])
89 return node[:]
90}

Callers 3

TestVersion1Function · 0.95
TestNodeAndTimeFunction · 0.80
TestVersion6Function · 0.80

Calls

no outgoing calls

Tested by 3

TestVersion1Function · 0.76
TestNodeAndTimeFunction · 0.64
TestVersion6Function · 0.64