e57::DataPacketHeader Class Reference

#include <Packet.h>

Public Member Functions

 DataPacketHeader ()
 
void reset ()
 
void verify (unsigned bufferLength=0) const
 

Public Attributes

uint16_t bytestreamCount = 0
 
uint8_t packetFlags = 0
 
uint16_t packetLogicalLengthMinus1 = 0
 
const uint8_t packetType = DATA_PACKET
 

Constructor & Destructor Documentation

◆ DataPacketHeader()

DataPacketHeader::DataPacketHeader ( )

Double check that packet struct is correct length. Watch out for RTTI increasing the size.

References DataPacketHeader().

Referenced by DataPacketHeader().

Member Function Documentation

◆ reset()

void DataPacketHeader::reset ( )

◆ verify()

void DataPacketHeader::verify ( unsigned  bufferLength = 0) const

Verify that packet is correct type

??? check reserved flags zero?

Check packetLength is at least large enough to hold header

Check packet length is multiple of 4

Check actual packet length is large enough.

Make sure there is at least one entry in packet ??? 0 record cvect allowed?

Check packet is at least long enough to hold bytestreamBufferLength array

References bytestreamCount, e57::DATA_PACKET, e57::E57_ERROR_BAD_CV_PACKET, packetLogicalLengthMinus1, packetType, and e57::toString().

Referenced by e57::DataPacket::verify().

Member Data Documentation

◆ bytestreamCount

uint16_t e57::DataPacketHeader::bytestreamCount = 0

◆ packetFlags

uint8_t e57::DataPacketHeader::packetFlags = 0

Referenced by reset().

◆ packetLogicalLengthMinus1

uint16_t e57::DataPacketHeader::packetLogicalLengthMinus1 = 0

◆ packetType

const uint8_t e57::DataPacketHeader::packetType = DATA_PACKET

The documentation for this class was generated from the following files: