Documentation
¶
Overview ¶
Package layout computes the memory layout of named structs in a Target, returning the per-field offset/size/align/padding as data (no rendering).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inspector ¶
type Inspector struct{}
Inspector implements common.Inspector.
func (*Inspector) Layouts ¶
Layouts returns the layout of each named struct in t controlled by opts (nil patterns = all). A generic type has no concrete layout until it is instantiated, so it is measured with each type parameter replaced by a representative type (its constraint's core type, else interface{}) and the returned Layout carries a Note disclaiming the approximation.
Click to show internal directories.
Click to hide internal directories.