sizeofValue

func sizeofValue<T>(_: T)

Returns the contiguous memory footprint of T.

Does not include any dynamically-allocated or "remote" storage. In particular, sizeof(a), when a is a class instance, is the same regardless of how many stored properties a has.

Declaration

func sizeofValue<T>(_: T) -> Int