MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / getNode

Method getNode

xidmap/trie.go:36–42  ·  view source on GitHub ↗
(offset uint32)

Source from the content-addressed store, hash-verified

34 }
35}
36func (t *Trie) getNode(offset uint32) *node {
37 if offset == 0 {
38 return nil
39 }
40 data := t.buf.Data(int(offset))
41 return (*node)(unsafe.Pointer(&data[0]))
42}
43
44// Get would return the UID for the key. If the key is not found, it would return 0.
45func (t *Trie) Get(key string) uint64 {

Callers 3

getMethod · 0.95
putMethod · 0.95
iterateMethod · 0.95

Calls 1

DataMethod · 0.80

Tested by

no test coverage detected