()
| 28 | } |
| 29 | |
| 30 | func (c *xmlResourceMap) encode() []byte { |
| 31 | return encodeChunk(resXMLResourceMapType, func(w binary.Writer) { |
| 32 | // No custom header. |
| 33 | }, func(w binary.Writer) { |
| 34 | for _, id := range c.ids { |
| 35 | w.Uint32(id) |
| 36 | } |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | func (c *xmlResourceMap) decode(header, data []byte) error { |
| 41 | r := endian.Reader(bytes.NewReader(data), device.LittleEndian) |
nothing calls this directly
no test coverage detected