Skip to content

DML Serialization ​

In order to prepare a DML record for passing via KiNP, the object is preemptively encoded, which converts the data into a binary representation. The values of each DML element are literally serialized as binary in the order that they appear in the template.

DML Header ​

Continuing from the packet framing of our magic packets; after the body header has been created, a secondary payload header is employed, known as the DML header. This DML header helps a decoder to map the encoded binary data to its respective protocol.

NameTypeDescription
Service IDbyteThe unique protocol ID a message originates from.
Message IDbyteThe unique message ID relative to the protocol.
Lengthuint16_tThe length of the following payload, including this header.
Payloadbyte[]The following DML record, with each DML element serialized in order of writing.

Figure A.I - A table denoting the DML header.