MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / AcceptLeftSibling

Function AcceptLeftSibling

mtree/branch.go:24–31  ·  view source on GitHub ↗

explain the operation

(b *BranchNode, h NodeData)

Source from the content-addressed store, hash-verified

22
23// explain the operation
24func AcceptLeftSibling(b *BranchNode, h NodeData) *BranchNode {
25 return &BranchNode{
26 Hash: nil,
27 Left: &BranchNode{h, nil, nil, false},
28 Right: b,
29 ElementOnTheLeft: false,
30 }
31}
32
33func AcceptRightSibling(b *BranchNode, h NodeData) *BranchNode {
34 return &BranchNode{

Callers 1

insertNodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected