Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @numBits

@numBits

Panther
Documentation


1: func @numBits = <{T: Type, INCLUDE_PADDING: Bool}> () -> USize;

  Get the number of bits of TypeID.

Template Parameters

  T: The type to get the TypeID of - cannot be Void

  INCLUDE_PADDING: If true, include padding bits in result

Parameters

  None.

Return Value

  The number of bits of type T

Example

(TODO)

See Also

@numBytes Get the number of bytes of TypeID