MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / IsEqual

Method IsEqual

proto/nodeinfo.go:158–160  ·  view source on GitHub ↗

IsEqual returns if two node id is equal.

(target *NodeID)

Source from the content-addressed store, hash-verified

156
157// IsEqual returns if two node id is equal.
158func (id *NodeID) IsEqual(target *NodeID) bool {
159 return strings.Compare(string(*id), string(*target)) == 0
160}
161
162// MarshalBinary does the serialization.
163func (id *NodeID) MarshalBinary() (keyBytes []byte, err error) {

Callers 3

IsEmptyMethod · 0.45
FindMethod · 0.45
TestNodeID_ToRawNodeIDFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestNodeID_ToRawNodeIDFunction · 0.36