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

Method encode

core/os/android/binaryxml/xml_tree.go:96–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96func (c *xmlTree) encode() []byte {
97 return encodeChunk(resXMLType, func(w binary.Writer) {
98 // No custom header.
99 }, func(w binary.Writer) {
100 w.Data(c.strings.encode())
101 w.Data(c.resourceMap.encode())
102 for _, chunk := range c.chunks {
103 w.Data(chunk.encode())
104 }
105 })
106}
107
108func (c *xmlTree) toXmlString() string {
109 return c.xml(&xmlContext{

Callers

nothing calls this directly

Calls 3

encodeChunkFunction · 0.85
DataMethod · 0.65
encodeMethod · 0.65

Tested by

no test coverage detected