protected virtual void OnDataRead(pcaprec_hdr_t arg, USBPCAP_BUFFER_PACKET_HEADER packet, byte[] data) { EventHandler <DataEventArgs> handler = DataRead; if (handler != null) { handler(this, new DataEventArgs(arg, packet, data)); } }
public DataEventArgs(pcaprec_hdr_t record, USBPCAP_BUFFER_PACKET_HEADER packetHeader, byte[] data) { _record = record; _header = packetHeader; _data = data; }