mirror of https://github.com/opencardev/aasdk
Add TotalSize to FrameSize
parent
c3f6a2887f
commit
efcc4fd7ca
|
@ -37,6 +37,7 @@ public:
|
|||
|
||||
common::Data getData() const;
|
||||
size_t getSize() const;
|
||||
size_t getTotalSize() const;
|
||||
|
||||
static size_t getSizeOf(FrameSizeType type);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue