placeField

Place a field (mem) into an aggregate (agg), which can be a struct, union or class

@safe pure nothrow
uint
placeField
(
ref uint nextoffset
,
uint memsize
,,
structalign_t alignment
,
ref uint aggsize
,
ref uint aggalignsize
,
bool isunion
)

Parameters

nextoffset uint

location just past the end of the previous field in the aggregate. Updated to be just past the end of this field to be placed, i.e. the future nextoffset

memsize uint

size of field

memalignsize uint

natural alignment of field

alignment structalign_t

alignment in effect for this field

aggsize uint

size of aggregate (updated)

aggalignsize uint

alignment of aggregate (updated)

isunion bool

the aggregate is a union

Return Value

Type: uint

aligned offset to place field at

Meta