TypeInfo

TypeInfo contains necessary RTTI for a target type.

Members

Functions

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

Compares two instances for equality.

initializer
const(void)[] initializer()

Return default initializer. If the type should be initialized to all zeros, an array with a null ptr and a length equal to the type size will be returned. For static arrays, this returns the default initializer for a single element of the array, use tsize to get the correct size.

Properties

next
inout(TypeInfo) next [@property getter]

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

tsize
size_t tsize [@property getter]

Returns size of the type.

Meta