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

Struct source

core/data/dictionary/source.go:85–95  ·  view source on GitHub ↗

source implements I using a Source.

Source from the content-addressed store, hash-verified

83
84// source implements I using a Source.
85type source struct {
86 keyTy reflect.Type
87 valTy reflect.Type
88 get reflect.Value
89 add reflect.Value
90 lookup reflect.Value
91 contains reflect.Value
92 remove reflect.Value
93 len reflect.Value
94 keys reflect.Value
95}
96
97func (s source) Get(key interface{}) interface{} {
98 return s.get.Call([]reflect.Value{reflect.ValueOf(key)})[0].Interface()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected