()
| 94 | } |
| 95 | |
| 96 | func (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 | |
| 108 | func (c *xmlTree) toXmlString() string { |
| 109 | return c.xml(&xmlContext{ |
nothing calls this directly
no test coverage detected