You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Contributors,
I am currently working on a project relying on eProsima, while implementing a feature requiring that i edit the CacheChange_t payload length of the published data.
However I am not sure it might have consequences on the other functions like for example remove_cache() ..etc.
Could you please confirm if it wont break the logic of the whole program ?
PS: i am editing the code this part of the code:
void onNewCacheChangeAdded(RTPSReader* reader,
const CacheChange_t* const change) override {
ASOA_LOG_RTPS_DRIVER("received raw rtps message message" << std::endl);
// changing size of the payload
CacheChange_t mutableChange = *change;
while ((mutableChange.serializedPayload.length % 16) != 0) {
mutableChange.serializedPayload.length += 1;
}
// Modify the non-const copy of change as needed
cb_(mutableChange.serializedPayload.data, mutableChange.serializedPayload.length, args_);
// cb_(change->serializedPayload.data, change->serializedPayload.length,
// args_);
reader->getHistory()->remove_change((CacheChange_t*)change);
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear Contributors,
I am currently working on a project relying on eProsima, while implementing a feature requiring that i edit the CacheChange_t payload length of the published data.
However I am not sure it might have consequences on the other functions like for example remove_cache() ..etc.
Could you please confirm if it wont break the logic of the whole program ?
PS: i am editing the code this part of the code:
Thank you in advance
Anis
Beta Was this translation helpful? Give feedback.
All reactions