Method SetBody
SetBody(bool, params IEnumerable<ITypeRef>)
Sets the body of the structure
public void SetBody(bool packed, params IEnumerable<ITypeRef> elements)
Parameters
packedboolFlag to indicate if the body elements are packed (e.g. no padding)
elementsIEnumerable<ITypeRef>Types of each element (may be empty)
SetBody(bool, IDIBuilder, DIScope?, DIFile?, uint, DebugInfoFlags, params IEnumerable<DebugMemberInfo>)
Set the body of a type
public void SetBody(bool packed, IDIBuilder diBuilder, DIScope? scope, DIFile? file, uint line, DebugInfoFlags debugFlags, params IEnumerable<DebugMemberInfo> debugElements)
Parameters
packedboolFlag to indicate if the body elements are packed (e.g. no padding)
diBuilderIDIBuilderTo construct the debug information for this instance
scopeDIScopeScope containing this type
fileDIFileFile containing the type
lineuintLine in
filefor this typedebugFlagsDebugInfoFlagsDebug flags for this type
debugElementsIEnumerable<DebugMemberInfo>Descriptors for all the elements in the type
SetBody(bool, IDIBuilder, DIScope?, DIFile?, uint, DebugInfoFlags, IEnumerable<ITypeRef>, IEnumerable<DebugMemberInfo>, DIType?, uint?, uint)
Set the body of a type
public void SetBody(bool packed, IDIBuilder diBuilder, DIScope? scope, DIFile? file, uint line, DebugInfoFlags debugFlags, IEnumerable<ITypeRef> nativeElements, IEnumerable<DebugMemberInfo> debugElements, DIType? derivedFrom = null, uint? bitSize = null, uint bitAlignment = 0)
Parameters
packedboolFlag to indicate if the body elements are packed (e.g. no padding)
diBuilderIDIBuilderDebug information builder to use for generating debug information
scopeDIScopeScope containing this type
fileDIFileFile containing the type
lineuintLine in
filefor this typedebugFlagsDebugInfoFlagsDebug flags for this type
nativeElementsIEnumerable<ITypeRef>LLVM type of each element
debugElementsIEnumerable<DebugMemberInfo>Descriptors for each element in the type
derivedFromDITypeBase type, if any for this type
bitSizeuint?Total bit size for this type or null to use default for target
bitAlignmentuintAlignment of the type in bits, 0 indicates default for target