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

Function encodeLength

core/os/android/binaryxml/decode.go:162–167  ·  view source on GitHub ↗
(w binary.Writer, length uint32)

Source from the content-addressed store, hash-verified

160}
161
162func encodeLength(w binary.Writer, length uint32) {
163 if length >= 0x8000 {
164 panic("TODO: UNSUPPORTED")
165 }
166 w.Uint16(uint16(length))
167}
168
169// encodeChunk takes functions that output chunk-specific header and data to a writer, and then uses them to
170// compute header and chunk sizes, as well as writing the whole chunk to a byte array, which is then returned.

Callers 1

Calls 1

Uint16Method · 0.65

Tested by

no test coverage detected