5#include <c++utilities/io/binaryreader.h>
23 m_header1 = reader.readUInt16BE();
25 if ((m_header1 & 0xFFF6u) != 0xFFF0u) {
28 m_header2 =
hasCrc() ? reader.readUInt56BE() : (reader.readUInt40BE() << 16);
constexpr std::uint16_t totalSize() const
Returns the size of the frame (including the header) in bytes.
constexpr bool hasCrc() const
Returns whether a CRC-16 checksum is present ("protection absent" bit is NOT set).
constexpr std::uint8_t headerSize() const
Returns the header size in bytes (9 if CRC is present; otherwise 7).
void parseHeader(CppUtilities::BinaryReader &reader)
Parses the header read using the specified reader.
The exception that is thrown when the data to be parsed or to be made seems invalid and therefore can...
Contains all classes and functions of the TagInfo library.