Example #1
0
 public override byte[] ToArray()
 {
     Encoder s = new Encoder();
     s.Write(packetType);
     s.Write(reserved1);
     s.Write(reserved2);
     s.Write(reserved3);
     s.Write(packetId);
     s.Write((ushort)reserved);
     s.Write((uint)dataSize);
     s.Write((ushort)CommandId.TransferTrackLog);
     return s.ToArray();
 }
Example #2
0
 public virtual byte[] ToArray()
 {
     Encoder s = new Encoder();
     s.Write(packetType);
     s.Write(reserved1);
     s.Write(reserved2);
     s.Write(reserved3);
     s.Write(packetId);
     s.Write((ushort)reserved);
     s.Write((uint)dataSize);
     return s.ToArray();
 }