Message::SetUsedSize: add optional alignment argument, to avoid storing alignment with the msg object

This commit is contained in:
Alexey Rybalchenko
2023-10-18 13:01:28 +02:00
parent 1b7532a520
commit 3c714fd9e0
3 changed files with 9 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ struct Message
virtual void* GetData() const = 0;
virtual size_t GetSize() const = 0;
virtual bool SetUsedSize(size_t size) = 0;
virtual bool SetUsedSize(size_t size, Alignment alignment = Alignment{0}) = 0;
virtual Transport GetType() const = 0;
TransportFactory* GetTransport() { return fTransport; }