#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 |
DataPacketHeader::DataPacketHeader | ( | ) |
Double check that packet struct is correct length. Watch out for RTTI increasing the size.
References DataPacketHeader().
Referenced by DataPacketHeader().
void DataPacketHeader::reset | ( | ) |
References bytestreamCount, packetFlags, and packetLogicalLengthMinus1.
Referenced by draftguitools.gui_trackers.gridTracker::set().
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().
uint16_t e57::DataPacketHeader::bytestreamCount = 0 |
Referenced by e57::DataPacket::getBytestream(), reset(), verify(), and e57::DataPacket::verify().
uint8_t e57::DataPacketHeader::packetFlags = 0 |
Referenced by reset().
uint16_t e57::DataPacketHeader::packetLogicalLengthMinus1 = 0 |
Referenced by e57::DataPacket::getBytestream(), reset(), verify(), and e57::DataPacket::verify().
const uint8_t e57::DataPacketHeader::packetType = DATA_PACKET |
Referenced by e57::DataPacket::getBytestream(), and verify().