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

Function Decode

core/os/android/binaryxml/decode.go:65–71  ·  view source on GitHub ↗

Decode decodes a binary Android XML file to a string.

(ctx context.Context, data []byte)

Source from the content-addressed store, hash-verified

63
64// Decode decodes a binary Android XML file to a string.
65func Decode(ctx context.Context, data []byte) (string, error) {
66 xmlTree, err := decodeXmlTree(bytes.NewReader(data))
67 if err != nil {
68 return "", log.Err(ctx, err, "Decoding binary XML")
69 }
70 return xmlTree.toXmlString(), nil
71}
72
73type rootHolder struct {
74 rootNode *xmlTree

Callers

nothing calls this directly

Calls 4

decodeXmlTreeFunction · 0.85
toXmlStringMethod · 0.80
NewReaderMethod · 0.65
ErrMethod · 0.45

Tested by

no test coverage detected