[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


SIZE_STRUCT Source code in size_struct.pro

SIZE_STRUCT

Name
       SIZE_STRUCT
Purpose
       Obtain the size in bytes of an IDL structure definition.
Explanation
       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
Calling Sequence
                       bytes = size_struct( structure )
Example
                       print, size_struct( "fdq_sdf" )
Input Parameters
               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.
Returns
               Function returns the total size in bytes of a structure element.
Procedure
               Strategy is to call size_struct recursively if
               structure contains sub-structures.
               Otherwise just add up the field sizes.
Revision History
       written 1990 Frank Varosi STX @ NASA/GSFC (using align_struct).
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:14 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically