mcSTcellSize — Get data size (number of bytes) of a sparse-table cell
#include <memcom.h> mcInt64 mcSTcellSize(int dsid, int row_index, mcInt64 column_index);
mcSTcellSize
returns, for the
sparse-table dataset identified by dsid
, the
number of data bytes for the cell identified by the row index
row_index
and the column index
column_index
.
dsid (input)
Dataset identifier.
row_index (input)
Index of the row, starting at 1.
column_index (input)
Index of the column whose data size is requested. Column indices start at 1.
If no error occurred, the number of data bytes of this cell is
returned. For empty cells, 0 is returned. For fixed-sized non-empty
cells, the return value is equal to
num_elements
*
mcSizeof (type
),
the num_elements
and type
parameters as obtained by calling mcSTcolAttributes. If an
error occured, a negative value indicating the
MemCom error number is returned.