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

Method encode

core/os/android/binaryxml/value.go:115–118  ·  view source on GitHub ↗
(w binary.Writer)

Source from the content-addressed store, hash-verified

113 w.Float32(float32(v))
114}
115func (v valFloatPx) encode(w binary.Writer) {
116 writeTypedValueHeader(w, typeDimension)
117 encodeDimension(w, float32(v), 0)
118}
119func (v valFloatDp) encode(w binary.Writer) {
120 writeTypedValueHeader(w, typeDimension)
121 encodeDimension(w, float32(v), 1)

Callers

nothing calls this directly

Calls 2

writeTypedValueHeaderFunction · 0.85
encodeDimensionFunction · 0.85

Tested by

no test coverage detected