AggregateDeclaration.placeField

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

class AggregateDeclaration
extern (D) static
uint
placeField
(,
uint memsize
,,
structalign_t alignment
,
uint* paggsize
,,
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

paggsize uint*

size of aggregate (updated)

paggalignsize uint*

alignment of aggregate (updated)

isunion bool

the aggregate is a union

Return Value

Type: uint

aligned offset to place field at

Meta