sub nativesizeof

Documentation for sub nativesizeof assembled from the following types:

language documentation Native Calling Interface

From Native Calling Interface

(Native Calling Interface) sub nativesizeof

sub nativesizeof($objis export(:DEFAULT)

This returns the size in bytes of the supplied object, it can be thought of as being equivalent to sizeof in C. The object can be a builtin native type such as int64 or num64, a CArray or a class with the repr CStruct, CUnion or CPointer.