ObjectSymbol

Final data is located at ObjectSection.sectionData + ObjectSymbol.sectionOffset

Members

Functions

alignment
uint alignment()
Undocumented in source. Be warned that the author may not have intended to support it.
initializer
ubyte[] initializer()
Undocumented in source. Be warned that the author may not have intended to support it.
isAllZero
bool isAllZero()
Undocumented in source. Be warned that the author may not have intended to support it.
isIndirect
bool isIndirect()
Undocumented in source. Be warned that the author may not have intended to support it.
isMutable
bool isMutable()
Undocumented in source. Be warned that the author may not have intended to support it.
isPointer
bool isPointer()
Undocumented in source. Be warned that the author may not have intended to support it.
isReferenced
bool isReferenced()
Undocumented in source. Be warned that the author may not have intended to support it.
isString
bool isString()
Undocumented in source. Be warned that the author may not have intended to support it.
markReferenced
void markReferenced()
Undocumented in source. Be warned that the author may not have intended to support it.
needsZeroTermination
bool needsZeroTermination()
Undocumented in source. Be warned that the author may not have intended to support it.
setInitializer
void setInitializer(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

alignmentPower
ubyte alignmentPower;

How symbol must be aligned

dataPtr
ubyte* dataPtr;

Points to initializer if it is provided. (Can be null)

firstRef
LinkIndex firstRef;

List of references coming from this symbol

flags
ushort flags;

Set of ObjectSymbolFlags

id
Identifier id;
kind
ObjectSymbolKind kind;
length
uint length;

Length in bytes. Doesn't include padding and zero termination Is set in setInitializer (when has initializer), or manually (when zero inited, or is external host symbol)

moduleIndex
LinkIndex moduleIndex;

Symbol is inside this module

nextSymbol
LinkIndex nextSymbol;

List of module symbols

sectionIndex
LinkIndex sectionIndex;

Symbol is inside this section

sectionOffset
ulong sectionOffset;

Offset from the start of section. Can be equal to dataPtr if host symbol

Meta