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

Function NewDecoder

gapis/memory/decoder.go:34–36  ·  view source on GitHub ↗

NewDecoder constructs and returns a new Decoder that reads from r using the memory layout m.

(r binary.Reader, m *device.MemoryLayout)

Source from the content-addressed store, hash-verified

32// NewDecoder constructs and returns a new Decoder that reads from r using
33// the memory layout m.
34func NewDecoder(r binary.Reader, m *device.MemoryLayout) *Decoder {
35 return &Decoder{r, m, 0}
36}
37
38func (d *Decoder) alignAndOffset(l *device.DataTypeLayout) {
39 d.Align(uint64(l.Alignment))

Callers 2

LoadSliceFunction · 0.85
LoadPointerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected