Method StoreSizeOf
StoreSizeOf(ITypeRef)
Retrieves the number of bits required to store a value of the given type
public ulong StoreSizeOf(ITypeRef typeRef)
Parameters
typeRef
ITypeRefType to retrieve the storage size of
Returns
- ulong
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)