Answer the question
In order to leave comments, you need to log in
Is there a library in C++ that allows you to somehow quickly compress an array of binary data before passing it through any interface?
Good afternoon!
I transfer data over the serial port, is there any way to compress the data array before transmission (it is desirable that it be as fast as possible), and decompress them on the receiving side in order to load the processor instead of expanding the stream?
In pseudocode, something like this:
//На серверной стороне:
byte[] arr = getData();
byte[] zip_arr = zipData(arr);
sendData(zip_arr);
....
// На стороне клиента:
byte[] rec_zipped = receiveData();
byte[] unzip_arr = unzipData(rec_zipped);
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question