BIOP Message Header.
More...
#include <tsDSMCCBIOPMessage.h>
|
|
static constexpr uint8_t | BIOP_BYTE_ORDER_BIG_ENDIAN = 0x00 |
| | Big-endian byte order (always 0x00 per specification).
|
| |
|
static constexpr uint32_t | BIOP_MAGIC = 0x42494F50 |
| | BIOP magic number ("BIOP" in ASCII).
|
| |
|
static constexpr uint8_t | BIOP_MESSAGE_TYPE_STANDARD = 0x00 |
| | Standard message type (always 0x00 per specification).
|
| |
|
static constexpr uint8_t | BIOP_VERSION_MAJOR = 0x01 |
| | Standard BIOP version (major).
|
| |
|
static constexpr uint8_t | BIOP_VERSION_MINOR = 0x00 |
| | Standard BIOP version (minor).
|
| |
|
static constexpr size_t | HEADER_SIZE = 8 |
| | Fixed size of BIOP message header in bytes.
|
| |
BIOP Message Header.
This is the common header for all BIOP messages in DSM-CC Object Carousel.
- See also
- ISO/IEC 13818-6, Section 8
-
ETSI TR 101 202, Section 4.4
◆ isValid()
| bool ts::BIOPMessageHeader::isValid |
( |
| ) |
const |
Check if the header is valid.
- Returns
- True if the header has valid magic number and supported version.
◆ serialize()
| bool ts::BIOPMessageHeader::serialize |
( |
PSIBuffer & |
buf | ) |
const |
Serialize the BIOP message header.
- Parameters
-
| [in,out] | buf | Serialization buffer. |
- Returns
- True on success, false on error.
◆ deserialize()
| bool ts::BIOPMessageHeader::deserialize |
( |
PSIBuffer & |
buf | ) |
|
Deserialize the BIOP message header.
- Parameters
-
| [in,out] | buf | Deserialization buffer. Side effect: the buffer is switched to big-endian to match the BIOP byte_order field and is NOT restored afterwards — callers that share the buffer with little-endian readers must reset the byte order themselves. |
- Returns
- True on success, false on error.
◆ display()
Display the BIOP message header.
- Parameters
-
| [in,out] | display | Display engine. |
| [in] | margin | Left margin content. |
◆ Display()
A static method to display a BIOP message header.
- Parameters
-
| [in,out] | display | Display engine. |
| [in,out] | buf | A PSIBuffer over the BIOP message header. |
| [in] | margin | Left margin content. |
- Returns
- True on success, false on error.
◆ toXML()
Write the header fields as attributes on the given element.
The header has no dedicated XML container; its fields live as attributes directly on the enclosing <BIOP_message> element.
- Parameters
-
| [in,out] | duck | TSDuck execution context. |
| [in,out] | element | The element to attach the header attributes to. |
◆ fromXML()
Read the header fields from attributes of the given element.
- Parameters
-
| [in,out] | duck | TSDuck execution context. |
| [in] | element | The element whose attributes carry the header fields. |
- Returns
- True on success, false on error.
The documentation for this class was generated from the following file: