/// <summary> /// Constructs this SubMessageHeader with given kind and /// DEFAULT_ENDIANESS_FLAG. Length of the SubMessage is Set to 0. Length will /// be calculated during marshalling of the Message. /// </summary> /// <param name="kind"></param> public SubMessageHeader(SubMessageKind kind) : this(kind, DEFAULT_ENDIANNESS_FLAG) { }
/// <summary> /// Constructs this SubMessageHeader with given kind and flags. Length of the /// SubMessage is Set to 0. Length will be calculated during marshalling of /// the Message. /// </summary> /// <param name="kind"></param> /// <param name="flags"></param> public SubMessageHeader(SubMessageKind kind, byte flags) { this.kind = kind; this.flags.Value = flags; this.submessageLength = 0; // Length will be calculated at runtime }
public SubMessage(SubMessageKind k) { header_ = new SubMessageHeader(k); }