MCPcopy Create free account
hub / github.com/google/gapid / Index

Method Index

gapis/service/path/path.go:691–696  ·  view source on GitHub ↗

Index returns the path to the i'th child of the StateTreeNode.

(i ...uint64)

Source from the content-addressed store, hash-verified

689
690// Index returns the path to the i'th child of the StateTreeNode.
691func (n *StateTreeNode) Index(i ...uint64) *StateTreeNode {
692 newIndices := make([]uint64, len(n.Indices)+len(i))
693 copy(newIndices, n.Indices)
694 copy(newIndices[len(n.Indices):], i)
695 return &StateTreeNode{Tree: n.Tree, Indices: newIndices}
696}
697
698// Parameter returns the path node to the parameter with the given name.
699func (n *Command) Parameter(name string) *Parameter {

Callers 1

TestStateTreeNodeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestStateTreeNodeFunction · 0.76