Пример #1
0
		public object Clone()
		{
			var clone = new SocketHeader();
			clone.length = length;
			clone.msg = msg;

			return clone;
		}
Пример #2
0
        public object Clone()
        {
            var clone = new SocketHeader();

            clone.length = length;
            clone.msg    = msg;

            return(clone);
        }
Пример #3
0
 public SocketData(SocketHeader header, byte[] packet_data)
 {
     this.header = (SocketHeader)header.Clone();
     this.data   = new byte[this.header.length];
     Buffer.BlockCopy(packet_data, 0, this.data, 0, this.header.length);
 }
Пример #4
0
 public SocketData(SocketHeader header)
 {
     this.header = (SocketHeader)header.Clone();
     this.data   = new byte[this.header.length];
 }
Пример #5
0
		public SocketData(SocketHeader header, byte[] packet_data)
		{
			this.header = (SocketHeader) header.Clone();
			this.data = new byte[this.header.length];
            Buffer.BlockCopy(packet_data, 0, this.data, 0, this.header.length);
		}
Пример #6
0
		public SocketData(SocketHeader header)
		{
			this.header = (SocketHeader) header.Clone();
			this.data = new byte[this.header.length];
		}