TypeInfo

Runtime type information about a type. Can be retrieved for any type using a <a href="../expression.html#typeidexpression">TypeidExpression</a>.

Members

Functions

argTypes
int argTypes(TypeInfo arg1, TypeInfo arg2)

Return internal info on arguments fitting into 8byte. * See X86-64 ABI 3.2.3

compare
int compare(void* p1, void* p2)

Compares two instances for &lt;, ==, or &gt;.

equals
equals_t equals(void* p1, void* p2)

Compares two instances for equality.

flags
uint flags()

Get flags for type: 1 means GC should scan for pointers

getHash
hash_t getHash(void* p)

Returns a hash of the instance of a type.

init
void[] init()

Return default initializer, null if default initialize to 0

next
TypeInfo next()

Get TypeInfo for 'next' type, as defined by what kind of type this is, null if none.

offTi
OffsetTypeInfo[] offTi()

Get type information on the contents of the type; null if not available

opCmp
int opCmp(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
equals_t opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
pointermap
PointerMap pointermap()

Get a pointer to PointerMap; used for GC scanning

swap
void swap(void* p1, void* p2)

Swaps two instances of the type.

talign
size_t talign()

Return alignment of type

toHash
hash_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
tsize
size_t tsize()

Returns size of the type.

Meta