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

Function decodeLength

core/os/android/binaryxml/decode.go:153–160  ·  view source on GitHub ↗
(r binary.Reader)

Source from the content-addressed store, hash-verified

151}
152
153func decodeLength(r binary.Reader) uint32 {
154 length := uint32(r.Uint16())
155 if length&0x8000 != 0 {
156 panic("UNTESTED CODE")
157 length = (length << 16) | uint32(r.Uint16())
158 }
159 return length
160}
161
162func encodeLength(w binary.Writer, length uint32) {
163 if length >= 0x8000 {

Callers 1

decodeMethod · 0.85

Calls 1

Uint16Method · 0.65

Tested by

no test coverage detected