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, 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) { this.header = (SocketHeader) header.Clone(); this.data = new byte[this.header.length]; }