Click or drag to resize
Llvm.NET LogoDataLayoutBitSizeOf Method

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

Returns the number of bits necessary to hold the specified type.

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

Parameters

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

Return Value

Type: UInt64
Remarks

This method determines the bit size of a type (e.g. the minimum number of bits required to represent any value of the given type.) This is distinct from the storage and stack size due to various target alignment requirements.

See Also