Code Examples.
More...
Code Examples.
Marshall the data, array and pointer of type ClUint8T
ClUint8T uint8Data = 120;
ClUint8T uint8Arr[10] = {0};
ClUint8T *uint8Ptr = NULL;
ClUint32T i = 0;
ClUint32T rmdFlags = 0;
if(NULL != uint8Ptr)
{
clLogError("EXP","XDR", "Memory allocation Failed.");
}
for(i = 0; i < 10; i++)
{
uint8Arr[i] = i;
uint8Ptr[i] = 10 - i;
}
{
clLogError("EXP","XDR", "Buffer creation Failed.");
return rc;
}
{
clLogError("EXP","XDR", "Marshalling of ClUint8T data Failed.");
return rc;
}
sizeof(ClUint8T), inMsgHdl, 0);
{
clLogError("EXP","XDR", "Marshalling of ClUint8T array Failed.");
return rc;
}
{
clLogError("EXP","XDR", "Marshalling of ClUint8T pointer Failed.");
return rc;
}
{
clLogError("EXP","XDR", "Failed to get master address.");
return rc;
}
{
clLogError("EXP","XDR", "Buffer creation Failed.");
return rc;
}
rmdFlags, &rmdOptions, NULL);
{
clLogError("EXP","XDR", "Rmd call Failed.");
return rc;
}
Unmarshall the data, array and pointer of type ClUint8T
ClUint8T recvData = 0;
ClUint8T recvArr[10] = {0};
ClUint8T *recvPtr = NULL;
{
clLogError("EXP","XDR", "Unmarshalling of Uint8T data Failed.");
return rc;
}
{
clLogError("EXP","XDR", "Unmarshalling of Uint8T array Failed.");
return rc;
}
{
clLogError("EXP","XDR", "Unmarshalling of Uint8T pointer Failed.");
return rc;
}
{
}