MCPcopy Create free account
hub / github.com/godbus/dbus / decodeU

Method decodeU

decoder.go:102–107  ·  view source on GitHub ↗

decodeU decodes uint32 obtained from the reader dec.in. The goal is to reduce memory allocs.

()

Source from the content-addressed store, hash-verified

100// decodeU decodes uint32 obtained from the reader dec.in.
101// The goal is to reduce memory allocs.
102func (dec *decoder) decodeU() uint32 {
103 dec.align(4)
104 dec.read2buf(4)
105 dec.pos += 4
106 return dec.order.Uint32(dec.buf)
107}
108
109func (dec *decoder) decode(s string, depth int) any {
110 dec.align(alignment(typeFor(s)))

Callers 1

decodeMethod · 0.95

Calls 2

alignMethod · 0.95
read2bufMethod · 0.95

Tested by

no test coverage detected