PacketDataPrimitives
Type members
Classlikes
Types
Fixed-point number where least 12 bits of rawValueFP5 is taken as the fractional part
Fixed-point number where least 12 bits of rawValueFP5 is taken as the fractional part
Fixed-point number where least 5 bits of rawValueFP5 is taken as the fractional part
Fixed-point number where least 5 bits of rawValueFP5 is taken as the fractional part
A sequence of Data together with length of the array in Len. Len is expected to be an integer type.
A sequence of Data together with length of the array in Len. Len is expected to be an integer type.
A byte array whose length is not specified by the packet data.
A byte array whose length is not specified by the packet data.
An encoder of this data would just write out the content of the byte array, while the decoder of this data should keep reading the input until it meets the end of packet (which is known at runtime thanks to packet length specifier).
That being said, a packet definition should not contain UnspecifiedLengthByteArray before any other field of the packet, since a parser will be unable to know the end of array unless it meets the end of packet.