version 1.5.2.21, 2014/03/31 22:46:03
|
version 1.5.2.22, 2014/04/07 22:00:22
|
|
|
bool CIMResponseData::setBinary(CIMBuffer& in) | bool CIMResponseData::setBinary(CIMBuffer& in) |
{ | { |
PEG_METHOD_ENTER(TRC_DISPATCHER, "CIMResponseData::setBinary"); | PEG_METHOD_ENTER(TRC_DISPATCHER, "CIMResponseData::setBinary"); |
//// AutoMutex autoMut(testLock); |
|
| |
// Append all serial data from the CIMBuffer to the local data store. | // Append all serial data from the CIMBuffer to the local data store. |
// Returns error if input not a serialized Uint8A | // Returns error if input not a serialized Uint8A |
|
|
| |
bool CIMResponseData::setRemainingBinaryData(CIMBuffer& in) | bool CIMResponseData::setRemainingBinaryData(CIMBuffer& in) |
{ | { |
//// AutoMutex autoMut(testLock); |
|
PEG_METHOD_ENTER(TRC_DISPATCHER, "CIMResponseData::setRemainingBinaryData"); | PEG_METHOD_ENTER(TRC_DISPATCHER, "CIMResponseData::setRemainingBinaryData"); |
| |
// Append any data that has not been deserialized already from | // Append any data that has not been deserialized already from |
|
|
TEMPLOG; | TEMPLOG; |
} | } |
// Test of actual count against _size variable. KS_TODO diagnostic | // Test of actual count against _size variable. KS_TODO diagnostic |
if (rtnSize != _size) |
Uint32 lsize = _size; |
|
if (rtnSize != lsize) |
{ | { |
TEMPLOG; | TEMPLOG; |
TEST_SIZE_VALID; | TEST_SIZE_VALID; |
PEG_TRACE((TRC_XML, Tracer::LEVEL1, | PEG_TRACE((TRC_XML, Tracer::LEVEL1, |
"CIMResponseData::size ERROR. debug size mismatch." | "CIMResponseData::size ERROR. debug size mismatch." |
"Computed = %u. variable = %u",rtnSize, _size )); |
"Computed = %u. variable = %u inc binary %s",rtnSize, _size, |
|
boolToString(RESP_ENC_BINARY == (_encoding & RESP_ENC_BINARY)) |
|
)); |
// KS_TEMP | // KS_TEMP |
cout << "Size err Computed(rtnsize)=" << rtnSize << " _size=" << _size |
cout << "Size err Computed(rtnsize)=" << rtnSize << " _size=" << lsize |
<< " diff=" << (rtnSize - _size) << endl; |
<< " diff=" << (rtnSize - lsize) |
|
<< " inc Binary= " |
|
<< boolToString(RESP_ENC_BINARY == (_encoding & RESP_ENC_BINARY)) |
|
<< endl; |
TEMPLOG; | TEMPLOG; |
} | } |
PEG_TRACE((TRC_XML, Tracer::LEVEL1, "ReturnSize=%u", _size )); | PEG_TRACE((TRC_XML, Tracer::LEVEL1, "ReturnSize=%u", _size )); |