- Added asynchronous IO code from ANSTO
- Added new ACT protocol - Extended sicshdbadapter to cover counters and status to put the status into Hipadaba - Fixes to napi5.c - Exe now supports hdbrun which allows to write output for a buffer into hdb node.
This commit is contained in:
@ -180,8 +180,16 @@ static void netEncode(pSICSData self){
|
||||
/*---------------------------------------------------------------------*/
|
||||
void clearSICSData(pSICSData self){
|
||||
assert(self);
|
||||
int clearSize = 8192;
|
||||
|
||||
self->dataUsed = 0;
|
||||
if(self->currentDataSize > clearSize){
|
||||
free(self->data);
|
||||
free(self->dataType);
|
||||
self->data = (int *)malloc(clearSize*sizeof(int));
|
||||
self->dataType = (char *)malloc(clearSize*sizeof(char));
|
||||
self->currentDataSize = clearSize;
|
||||
}
|
||||
memset(self->data,0,self->currentDataSize*sizeof(int));
|
||||
memset(self->dataType,0,self->currentDataSize*sizeof(char));
|
||||
}
|
||||
|
Reference in New Issue
Block a user