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

Method ElementSize

gapis/memory/pointer.go:92–92  ·  view source on GitHub ↗
(m *device.MemoryLayout)

Source from the content-addressed store, hash-verified

90func (p ptr) Address() uint64 { return p.addr }
91func (p ptr) Offset(n uint64) Pointer { return ptr{p.addr + n, p.elTy} }
92func (p ptr) ElementSize(m *device.MemoryLayout) uint64 { return SizeOf(p.elTy, m) }
93func (p ptr) ElementType() reflect.Type { return p.elTy }
94func (p ptr) APointer() { return }
95func (p ptr) ISlice(start, end uint64, m *device.MemoryLayout) Slice {

Callers 1

ISliceMethod · 0.95

Calls 1

SizeOfFunction · 0.85

Tested by

no test coverage detected