SEDRIS Reference Manual
APPENDIX B - LEVEL 1 READ and WRITE API Functions SE AllocPackedDataTableData |
---|
extern SE_Status_Code | ||||
SE_AllocPackedDataTableData | ||||
( | ||||
SE_Integer_Positive | byte_count, | (notes) | ||
unsigned char | * | * | data_out_ptr | (notes) |
); |
Allocates memory for a <Data Table> like that retrieved with SE_GetPackedDataTable(). This function is provided to support applications that must make an "application-owned" copy of the <Data Table>'s data.
Memory allocated by SE_AllocPackedDataTableData() should be freed in 2 stages:
SE_STAT_CODE_SUCCESS | and memory is allocated for *data_out_ptr, if valid parameters were passed in and allocation succeeded. |
SE_STAT_CODE_NULL_REQUIRED_PARAMETER | and the output parameter value is left unaltered, if data_out_ptr, is NULL or byte_count is zero (0). |
SE_STAT_CODE_OUT_OF_MEMORY | and *data_out_ptr, is set to NULL, if memory allocation failed. |
the number of bytes needed to store the specified <Data Table>.
pointer to a pointer to a block of data allocated to hold the <Data Table>.
Prev: SE_AllocElementOfDataTableData.
Next: SE_FreeDataTableConstantSignature.
Up:Index.
|