Add TotalSize to FrameSize

pull/14/head
Simon.Dean 2022-01-31 13:48:16 +00:00
parent c3f6a2887f
commit efcc4fd7ca
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public:
common::Data getData() const;
size_t getSize() const;
size_t getTotalSize() const;
static size_t getSizeOf(FrameSizeType type);

View File

@ -48,6 +48,7 @@ FrameSize::FrameSize(const common::DataConstBuffer& buffer)
{
frameSizeType_ = FrameSizeType::SHORT;
frameSize_ = boost::endian::big_to_native(reinterpret_cast<const uint16_t&>(buffer.cdata[0]));
totalSize_ = frameSize_;
}
if(buffer.size >= 6)