// do decompression: extract the data private List <canMessage2> doDecompressToList(string source, out long msg_cnt) { msg_cnt = 0; // read the file ui_set_state_string("Reading..."); byte[] src = File.ReadAllBytes(source); // get a number of messages msg_cnt = Compression.CanMessageCompressedMessageCountGet(src); // decompress ui_set_state_string("Extracting..."); List <canMessage2> res = Compression.CanMessagesDecompress(src); return(res); }