Method StoreSizeOf
StoreSizeOf(ITypeRef)
Retrieves the number of bits required to store a value of the given type
Declaration
public ulong StoreSizeOf(ITypeRef typeRef)
Parameters
public ulong StoreSizeOf(ITypeRef typeRef)
ITypeRef | typeRef | Type to retrieve the storage size of |
Returns
UInt64 | Number of bits required to store a value of the given type in the target |
Remarks
This method retrieves the storage size in bits of a given type. The storage size includes any trailing padding bits that may be needed if the target requires reading a wider word size. (e.g. most systems can't write a single bit value for an LLVM i1, thus the storage size is whatever the minimum number of bits that the target requires to store a value of the given type)