Esempio n. 1
0
 public void Serialise(Stream stream)
 {
     stream.WriteByte((byte)this.MessageType);
     NetworkByteOrderConverter.WriteUInt24(stream, this.Length);
     NetworkByteOrderConverter.WriteUInt16(stream, this.MessageSeq);
     NetworkByteOrderConverter.WriteUInt24(stream, this.FragmentOffset);
     NetworkByteOrderConverter.WriteUInt24(stream, this.FragmentLength);
 }
Esempio n. 2
0
 public void Serialise(System.IO.Stream stream)
 {
     stream.WriteByte((byte)_MessageType);
     NetworkByteOrderConverter.WriteUInt24(stream, _Length);
     NetworkByteOrderConverter.WriteUInt16(stream, _MessageSeq);
     NetworkByteOrderConverter.WriteUInt24(stream, _FragmentOffset);
     NetworkByteOrderConverter.WriteUInt24(stream, _FragmentLength);
 }