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

Function NamespaceToBytes

x/keys.go:72–76  ·  view source on GitHub ↗
(ns uint64)

Source from the content-addressed store, hash-verified

70}
71
72func NamespaceToBytes(ns uint64) []byte {
73 buf := make([]byte, 8)
74 binary.BigEndian.PutUint64(buf, ns)
75 return buf
76}
77
78// NamespaceAttr is used to generate attr from namespace.
79func NamespaceAttr(ns uint64, attr string) string {

Callers 1

exportInternalFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected