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

Method SizeOf

core/codegen/module.go:488–490  ·  view source on GitHub ↗

SizeOf returns the size of the type in bytes as a uint64.

(ty Type)

Source from the content-addressed store, hash-verified

486
487// SizeOf returns the size of the type in bytes as a uint64.
488func (m *Module) SizeOf(ty Type) Const {
489 return m.Scalar(uint64((ty.SizeInBits() + 7) / 8))
490}
491
492// AlignOf returns the alignment of the type in bytes.
493func (m *Module) AlignOf(ty Type) Const {

Callers

nothing calls this directly

Calls 2

ScalarMethod · 0.95
SizeInBitsMethod · 0.65

Tested by

no test coverage detected