public WriteValueType ( object val, |
||
val | object | |
type | ||
Результат | void |
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 (); }
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()); }