예제 #1
0
        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();
        }
예제 #2
0
		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 ();
		}