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

Method decode

core/os/android/binaryxml/xml_attribute.go:77–84  ·  view source on GitHub ↗
(r binary.Reader, root *xmlTree)

Source from the content-addressed store, hash-verified

75const xmlAttributeSize = 20
76
77func (a *xmlAttribute) decode(r binary.Reader, root *xmlTree) error {
78 a.namespace = root.decodeString(r)
79 a.name = root.decodeString(r)
80 a.rawValue = root.decodeString(r)
81 typedValue, err := decodeValue(r, root)
82 a.typedValue = typedValue
83 return err
84}
85
86func (a *xmlAttribute) encode(w binary.Writer) {
87 a.namespace.encode(w)

Callers

nothing calls this directly

Calls 2

decodeValueFunction · 0.85
decodeStringMethod · 0.80

Tested by

no test coverage detected