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

Method Insert

gapis/api/graph_visualization.go:60–69  ·  view source on GitHub ↗

Insert a new level in the current Label.

(level int, name string, id int)

Source from the content-addressed store, hash-verified

58
59// Insert a new level in the current Label.
60func (label *Label) Insert(level int, name string, id int) {
61 if level < len(label.LevelsName) {
62 label.LevelsName = append(label.LevelsName, "")
63 label.LevelsID = append(label.LevelsID, 0)
64 copy(label.LevelsName[level+1:], label.LevelsName[level:])
65 copy(label.LevelsID[level+1:], label.LevelsID[level:])
66 label.LevelsName[level] = name
67 label.LevelsID[level] = id
68 }
69}
70
71// GetCommandName returns the name of the last level
72// corresponding to the node name.

Callers 1

TestLabelFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestLabelFunction · 0.76