public object Clone() { var clone = new SocketHeader(); clone.length = length; clone.msg = msg; return clone; }
public object Clone() { var clone = new SocketHeader(); clone.length = length; clone.msg = msg; return(clone); }
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); }
public SocketData(SocketHeader header) { this.header = (SocketHeader)header.Clone(); this.data = new byte[this.header.length]; }
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); }
public SocketData(SocketHeader header) { this.header = (SocketHeader) header.Clone(); this.data = new byte[this.header.length]; }