WriteValueType() public method

public WriteValueType ( object val, Type type ) : void
val object
type System.Type
return void
Esempio n. 1
0
		public byte[] GetHeaderData ()
		{
			if (Body != null)
				Header.Length = (uint)Body.Length;

			MessageWriter writer = new MessageWriter (Header.Endianness);
			writer.WriteValueType (Header, typeof (Header));
			writer.CloseWrite ();

			return writer.ToArray ();
		}
Esempio n. 2
0
        public byte[] GetHeaderData()
        {
            if (Body != null)
            {
                Header.Length = (uint)Body.Length;
            }

            MessageWriter writer = new MessageWriter(Header.Endianness);

            writer.WriteValueType(Header, typeof(Header));
            writer.CloseWrite();

            return(writer.ToArray());
        }