Пример #1
0
        public object Clone()
        {
            var clone = new PacketHead();

            clone.length = length;
            clone.msg_id = msg_id;
            return(clone);
        }
Пример #2
0
 public Packet(PacketHead head)
 {
     this.head = (PacketHead)head.Clone();
     this.data = new byte[this.head.length];
 }
Пример #3
0
 public Packet(PacketHead head, byte[] packetData)
 {
     this.head = (PacketHead)head.Clone();
     this.data = new byte[this.head.length];
     Buffer.BlockCopy(packetData, 0, this.data, 0, this.head.length);
 }