示例#1
0
文件: Packet.cs 项目: mdrucken/gipsi
 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();
 }
示例#2
0
文件: Packet.cs 项目: mdrucken/gipsi
 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();
 }