![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieWaldhäuser Str. 64, D-72076 Tübingen, Germany |
![]() |
SIZE_STRUCT
Obtain the size in bytes of an IDL structure definition.
For most applications this function is superceded by use
of the /LENGTH keyword to the intrinsic N_TAGS function
introduced in IDL V2.3.0
bytes = size_struct( structure )
print, size_struct( "fdq_sdf" )
structure = a structure variable or
a string giving the structure name
as known by IDL (help,/struct,variable).
/PRINT = to print all sub structure sizes.
inputs/outputs used recursively:
struct = the structure VARIABLE currently analyzed.
Max_Field_Size = size of the largest field found in structure.
Function returns the total size in bytes of a structure element.
Strategy is to call size_struct recursively if
structure contains sub-structures.
Otherwise just add up the field sizes.
written 1990 Frank Varosi STX @ NASA/GSFC (using align_struct).
Converted to IDL V5.0 W. Landsman September 1997
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]