Skip to content

sizeOf<T extends SizedNativeType>

int sizeOf<T extends SizedNativeType>()

Number of bytes used by native type T.

Includes padding and alignment of structs.

This function must be invoked with a compile-time constant T.