Contents

class_getInstanceSize(_:)

Returns the size of instances of a class.

Declaration

func class_getInstanceSize(_ cls: AnyClass?) -> Int

Parameters

  • cls:

    A class object.

Return Value

The size in bytes of instances of the class cls, or 0 if cls is Nil.

See Also

Working with Classes