Beispiel #1
0
 public static byte[] Pack(byte cid, IPacket p)
 {
     lastPack = new byte[p.GetLength() + HEADERSIZE];
     Array.Copy(GenerateHeader(cid, p), lastPack, HEADERSIZE);
     Array.ConstrainedCopy(p.EncodeRaw(), 0, lastPack, HEADERSIZE, p.GetLength());
     return(lastPack);
 }