mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Message::SetUsedSize: add optional alignment argument, to avoid storing alignment with the msg object
This commit is contained in:
@@ -210,7 +210,7 @@ class Message final : public fair::mq::Message
|
||||
// destroyed. Used size is applied only once in ApplyUsedSize, which is called by the socket
|
||||
// before sending. This function just updates the desired size until the actual "resizing"
|
||||
// happens.
|
||||
bool SetUsedSize(size_t size) override
|
||||
bool SetUsedSize(size_t size, Alignment /* alignment */ = Alignment{0}) override
|
||||
{
|
||||
if (size == GetSize()) {
|
||||
// nothing to do
|
||||
|
Reference in New Issue
Block a user