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

Function Read

gapis/memory/read.go:25–31  ·  view source on GitHub ↗

Read reads the value pointed at p from the decoder d using C alignment rules. If v is an array or slice, then each of the elements will be read, sequentially.

(d *Decoder, p interface{})

Source from the content-addressed store, hash-verified

23// If v is an array or slice, then each of the elements will be read,
24// sequentially.
25func Read(d *Decoder, p interface{}) {
26 v := reflect.ValueOf(p)
27 if v.Kind() != reflect.Ptr {
28 panic(fmt.Errorf("p must be pointer, got %T", p))
29 }
30 decode(d, v)
31}
32
33func decode(d *Decoder, v reflect.Value) {
34 t := v.Type()

Callers 2

LoadSliceFunction · 0.70
LoadPointerFunction · 0.70

Calls 2

decodeFunction · 0.85
KindMethod · 0.65

Tested by

no test coverage detected