public void WriteHeader() { if (Body != null) { Header.Length = (uint)Body.Length; } MessageWriter writer = new MessageWriter(Connection.NativeEndianness); writer.WriteStruct(typeof(Header), Header); //writer.WriteFromDict (typeof (FieldCode), typeof (object), Header.Fields); writer.CloseWrite(); HeaderData = writer.ToArray(); }
public void WriteHeader () { if (Body != null) Header.Length = (uint)Body.Length; MessageWriter writer = new MessageWriter (Connection.NativeEndianness); writer.WriteStruct (typeof (Header), Header); //writer.WriteFromDict (typeof (FieldCode), typeof (object), Header.Fields); writer.CloseWrite (); HeaderData = writer.ToArray (); }