Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @numBytes

@numBytes

Panther
Documentation


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

  Get the number of bytes of TypeID.

Template Parameters

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

  INCLUDE_PADDING: If true, include padding bytes in result

Parameters

  None.

Return Value

  The number of bytes of type T

Example

(TODO)

See Also

@numBits Get the number of bits of TypeID