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

Method decode

core/os/android/binaryxml/xml_end_namespace.go:38–49  ·  view source on GitHub ↗
(header, data []byte)

Source from the content-addressed store, hash-verified

36}
37
38func (c *xmlEndNamespace) decode(header, data []byte) error {
39 r := endian.Reader(bytes.NewReader(header), device.LittleEndian)
40 c.lineNumber = r.Uint32()
41 c.comment = c.root().decodeString(r)
42 if err := r.Error(); err != nil {
43 return err
44 }
45 r = endian.Reader(bytes.NewReader(data), device.LittleEndian)
46 c.namespacePrefix = c.root().decodeString(r)
47 c.namespaceURI = c.root().decodeString(r)
48 return r.Error()
49}
50
51func (c *xmlEndNamespace) xml(ctx *xmlContext) string {
52 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