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

Method alignAndOffset

gapis/memory/encoder.go:36–39  ·  view source on GitHub ↗
(d *device.DataTypeLayout)

Source from the content-addressed store, hash-verified

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))
38 e.o += uint64(d.Size)
39}
40
41// MemoryLayout returns the MemoryLayout used by the encoder.
42func (e *Encoder) MemoryLayout() *device.MemoryLayout {

Callers 15

PointerMethod · 0.95
F32Method · 0.95
F64Method · 0.95
I8Method · 0.95
I16Method · 0.95
I32Method · 0.95
I64Method · 0.95
U8Method · 0.95
U16Method · 0.95
U32Method · 0.95
U64Method · 0.95
CharMethod · 0.95

Calls 1

AlignMethod · 0.95

Tested by

no test coverage detected