iDevOS CALC "ESIZE" Command

Get the allocated display memory size for an entity.

Description

CALC( y, name, "ESIZE" );   // y = size("name") = allocated display size in bytes of entity name

This command returns the value y which is the number of bytes allocated for displaying the entitiy called name.

Parameters

y
Calculation result.
Parameter type: entity name of a numeric variable (eg U8, S32, FLT3 etc).
name
Entity Name.
Parameter type: immediate entity name.
"ESIZE"
CALC command operator.
Parameter type: immediate string.

Examples

Example 1

VAR(size, 0, S32);
STYLE(stTxt, TEXT) { font=Ascii32; }
TEXT(txt1, "Hello World!", stTxt);
	
CALC(size, txt1, "ESIZE"); // size = 71424