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

Function Write

gapis/memory/write.go:25–27  ·  view source on GitHub ↗

Write writes the value v to the encoder e using C alignment rules. If v is an array or slice, then each of the elements will be written, sequentially. Zeros are used as for paddinge.

(e *Encoder, v interface{})

Source from the content-addressed store, hash-verified

23// If v is an array or slice, then each of the elements will be written,
24// sequentially. Zeros are used as for paddinge.
25func Write(e *Encoder, v interface{}) {
26 encode(e, reflect.ValueOf(v))
27}
28
29func encode(e *Encoder, v reflect.Value) {
30 t := v.Type()

Callers 6

StoreFunction · 0.70
TestWriteOn32bitArchFunction · 0.70
TestWriteOn64bitArchFunction · 0.70
NewDataFunction · 0.70

Calls 1

encodeFunction · 0.85

Tested by 4

TestWriteOn32bitArchFunction · 0.56
TestWriteOn64bitArchFunction · 0.56