Table of Contents

Method BitSizeOf

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

BitSizeOf(ITypeRef)

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

public ulong BitSizeOf(ITypeRef typeRef)

Parameters

typeRef ITypeRef

Type to retrieve the size of

Returns

ulong

Size of the type in bits

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.