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

Method alignAndOffset

gapis/memory/decoder.go:38–41  ·  view source on GitHub ↗
(l *device.DataTypeLayout)

Source from the content-addressed store, hash-verified

36}
37
38func (d *Decoder) alignAndOffset(l *device.DataTypeLayout) {
39 d.Align(uint64(l.Alignment))
40 d.o += uint64(l.Size)
41}
42
43// MemoryLayout returns the MemoryLayout used by the decoder.
44func (d *Decoder) 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