func sizeof<T>(_: T.Type) Returns the contiguous memory footprint of T. Does not include any dynamically-allocated or "remote" storage. In particular, sizeof(X.self), when X is a class type, is the same regardless of how many stored properties X has. Declaration func sizeof<T>(_: T.Type) -> Int
Returns the contiguous memory footprint of
T
.Does not include any dynamically-allocated or "remote" storage. In particular,
sizeof(X.self)
, whenX
is a class type, is the same regardless of how many stored propertiesX
has.Declaration
func
sizeof
<
T
>
(
_
:
T
.
Type
) -
>
Int