◆ fiftyoneDegreesDataMalloc()
void* fiftyoneDegreesDataMalloc | ( | fiftyoneDegreesData * | data, |
size_t | bytesNeeded | ||
) |
Ensures the data structure contains sufficient bytes.
If insufficient bytes are available then the current memory is freed and a new block of memory is allocated.
- Parameters
-
- data - pointer to the data structure to be checked for sufficient bytes
- bytesNeeded - the number of bytes the data needs to be able to store
- Returns
- a pointer to the memory held within data