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

Method encode

core/os/android/binaryxml/xml_resource_map.go:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (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
40func (c *xmlResourceMap) decode(header, data []byte) error {
41 r := endian.Reader(bytes.NewReader(data), device.LittleEndian)

Callers

nothing calls this directly

Calls 2

encodeChunkFunction · 0.85
Uint32Method · 0.65

Tested by

no test coverage detected