Lucee Function Reference

sizeof()

this function is experimental, do not use in a production environment. this function returns the size in bytes of a given object.

Example

sizeof(object obj,[boolean complex]):any

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
obj object  Yes object to get size for  
complex boolean  No if set to false, the size is returned, if set to true a struct containing the element count and the size is returned