ByteArrayContent

@Serializable
data class ByteArrayContent(val payload: ByteArray) : OtherContent

Represents raw binary data content in the Satellite Message Protocol.

This class encapsulates arbitrary binary data to be transmitted via satellite. It is used when the content doesn't fit into standard message types and requires custom handling by the receiving system. This content type always uses ContentType.OTHER with a SubContent.BYTE_ARRAY indicator.

Note: The interpretation of the payload bytes is dependent on the external backend implementation of the customer using it. After the internal subtype indicator (0) in the payload, the remaining data format is customer-specific. This can be freely used to create custom content as per use-case.

Constructors

Link copied to clipboard
constructor(payload: ByteArray)

Properties

Link copied to clipboard

The type of content represented by this instance.

Link copied to clipboard

The raw binary data to be transmitted.

Functions

Link copied to clipboard
fun createSmpHeader(messageCounter: Int, eventTimestamp: SmpTimestamp, version: Int = 1, ackFlag: Boolean = false): SmpHeader

Creates an SMP header for this content.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int