Class StringDataEncoding

  • All Implemented Interfaces:
    Serializable

    public class StringDataEncoding
    extends DataEncoding
    For common encodings of string data.

    String data is encoded in a buffer. The size of the buffer may be fixed or variable. The size of the string may be variable inside the buffer or may take the whole buffer.

    Upon decoding a packet, the resulting raw value will be the string extracted from the buffer but the parameter is considered to occupy the whole buffer (meaning that the next parameter will come in the packet after the end of the buffer not after the end of the string)

    The distinction between the string and the buffer containing the string has been made in Yamcs 5.5 in order to comply better with the XTCE 1.2.

    See Also:
    Serialized Form