From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
XDCscript - Struct-Object.$sizeof
The target size of a structure
Contents |
Synopsis
| «tobj».$sizeof() |
Description
Returns the target size of the structure «tobj» in target chars. In other words, this function returns the same value that the target compiler would provide when applying the C sizeof() operator on the structure. Note this may be different from the number of 8-bit bytes in the structure; some target architectures have a 16-bit char.
Example
The following example illustrates the use of the $sizeof() method. The size of the structure declared in Mod.xdc is printed from an application configuration script app.cfg.
|
|
See also
XDCscript - Struct-Object.$alignof | The target alignment of a structure |
XDCscript - Typed-Object | Objects specified by the RTSC Interface Definition Language |
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved