SEDRIS Reference Manual
APPENDIX B - LEVEL 1 READ and WRITE API
Functions
SE GetSizeOfElementOfDataTable
extern SE_Status_Code
SE_GetSizeOfElementOfDataTable
(
SE_Object data_table, (notes)
constSE_Data_Table_Sub_Extent *extents_ptr, (notes)
SE_Integer_Positive table_prop_descript_number, (notes)
SE_Integer_Unsigned *byte_count_out_ptr (notes)
);

Definition

Computes the number of bytes needed in order to store a section of the <Data Table> of a single element with the given axis extents.

This function can be used to determine how much space to allocate for a call to the level 0 API function SE_GetElementOfDataTable().


Returns

SE_STAT_CODE_SUCCESS and *byte_count_out_ptr is set appropriately, if valid parameters were passed in.
SE_STAT_CODE_NULL_REQUIRED_PARAMETER and *byte_count_out_ptr is left unaltered, if
  1. extents_ptr was NULL,
  2. table_prop_descript_number is zero (0), or
  3. byte_count_out_ptr was NULL.
SE_STAT_CODE_INVALID_OR_NULL_OBJECT and *byte_count_out_ptr is set to zero (0), if the data_table passed in is not a handle to a valid, active (i.e., unfreed) <Data Table> instance.
SE_STAT_CODE_UNRESOLVED_START_OBJECT and *byte_count_out_ptr is set to zero (0), if data_table is an unresolved SEDRIS object.
SE_STAT_CODE_UNRESOLVED_OBJECT and *byte_count_out_ptr is set to zero (0), if an unresolved object was encountered and could not be resolved.
SE_STAT_CODE_FAILURE and *byte_count_out_ptr is set to zero (0), if
  1. if the extents are invalid for data_table,
  2. if table_prop_descript_number is not valid for data_table, or
  3. the API implementation specified does not provide the necessary underlying functions in its shared library, and dynamic binding is specified at compile time.


Parameters Notes


data_table

 the <Data Table> instance

extents_ptr

 indicates the cells that the user wants returned (which
    'region' of the <Data Table> is to be retrieved)

table_prop_descript_number

 an index into the ordered list of
    <Table Property Descriptions> aggregated by
    data_table

byte_count_out_ptr

 a pointer to a variable in the user's memory space
    where the number of bytes needed to store the specified region
    of data_table will be stored.


Prev: SE_GetSizeOfDataTableData. Next: SE_GetSizeOfImageData. Up:Index.

Last updated: May 15, 2003 Copyright © 2003 SEDRIS™