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

Function NewEncoder

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

NewEncoder constructs and returns a new Encoder that writes to w using the memory layout m.

(w binary.Writer, m *device.MemoryLayout)

Source from the content-addressed store, hash-verified

32// NewEncoder constructs and returns a new Encoder that writes to w using
33// the memory layout m.
34func NewEncoder(w binary.Writer, m *device.MemoryLayout) *Encoder { return &Encoder{w, m, 0} }
35
36func (e *Encoder) alignAndOffset(d *device.DataTypeLayout) {
37 e.Align(uint64(d.Alignment))

Callers 6

StoreFunction · 0.85
TestWriteOn32bitArchFunction · 0.85
TestWriteOn64bitArchFunction · 0.85
NewDataFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestWriteOn32bitArchFunction · 0.68
TestWriteOn64bitArchFunction · 0.68