Returns the contiguous memory footprint of the given instance.
- Xcode 8.0+
- Swift Standard Library
A value representative of the type to describe.
The size, in bytes, of the given value’s type.
The result does not include any dynamically allocated or out of line storage. In particular, pointers and class instances all have the same contiguous memory footprint, regardless of the size of the referenced data.
When you have a type instead of an instance, use the
Memory static property instead.