Click or drag to resize
Llvm.NET LogoDataLayoutStoreSizeOf Method

[This is preliminary documentation and is subject to change.]

Retrieves the number of bits required to store a value of the given type

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public ulong StoreSizeOf(
	ITypeRef typeRef
)

Parameters

typeRef
Type: Llvm.NET.TypesITypeRef
Type to retrieve the storage size of

Return Value

Type: 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)
See Also