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

Function ConsumeBytes

core/data/binary/reader.go:103–108  ·  view source on GitHub ↗

ConsumeBytes reads and throws away a number of bytes from r, returning the number of bytes it consumed.

(r Reader, bytes uint64)

Source from the content-addressed store, hash-verified

101// ConsumeBytes reads and throws away a number of bytes from r, returning the
102// number of bytes it consumed.
103func ConsumeBytes(r Reader, bytes uint64) uint64 {
104 for i := uint64(0); i < bytes; i++ {
105 r.Uint8()
106 }
107 return bytes
108}

Callers

nothing calls this directly

Calls 1

Uint8Method · 0.65

Tested by

no test coverage detected