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

Method decode

core/os/android/binaryxml/xml_start_namespace.go:33–44  ·  view source on GitHub ↗
(header, data []byte)

Source from the content-addressed store, hash-verified

31}
32
33func (c *xmlStartNamespace) decode(header, data []byte) error {
34 r := endian.Reader(bytes.NewReader(header), device.LittleEndian)
35 c.lineNumber = r.Uint32()
36 c.comment = c.root().decodeString(r)
37 if err := r.Error(); err != nil {
38 return err
39 }
40 r = endian.Reader(bytes.NewReader(data), device.LittleEndian)
41 c.namespacePrefix = c.root().decodeString(r)
42 c.namespaceURI = c.root().decodeString(r)
43 return r.Error()
44}
45
46func (c *xmlStartNamespace) xml(ctx *xmlContext) string {
47 c.updateContext(ctx)

Callers

nothing calls this directly

Calls 6

decodeStringMethod · 0.80
ReaderMethod · 0.65
NewReaderMethod · 0.65
Uint32Method · 0.65
rootMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected