|
sizeof
|
The sizeof function returns the closure size of the argument.
The closure size is defined as the number of bytes of uncompressed disk memory
required to store the original argument and any objects recursively referenced
(reachable) from the argument plus a record header.
When to use The sizeof function returns the disk file closure size of an object.
Often it is necessary to know how much disk memory an object, together with all
of the objects reachable from it, will require. An example would be a Matrix of 10
elements, where each item holds a different 100-byte long string object. The
length of this Matrix will, of course, be 100; but, the sizeof the Matrix will
exceed 1000 bytes. (There are 10 different String objects, each of which is 100 bytes
long). The closure size of the Matrix would grow if any of its elements were
themselves Matrices containing other objects, etc.
(sizeof obj ) Returns the closure size of an object
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Syntax
Name
Description
AIS Types obj none Character String Symbol Vector BitVector Brick ByteVector IntVector Boolean
ShortVector FltVector ObjVector Structure Dictionary Directory Pair List Void Date
ObjectRepository
Matrix NumMatrix Integer Float Number Complex Function
Returns:
Examples
Argument Types
How do I contact the AIS team?