I have a byte buffer (between 3000 and 50000 bytes) that I would like to send through serial COM from a PC to an µ-controller. As far as this transfer is slow (115200 bytes/s), I would like to compress it in ZIP format in memory before sending it.
I don't want GZIP, as the destination controller can natively uncompress ZIP.
System.IO.Compress.ZipArchive seems to be used for files, but I just want to remain in memory using an input buffer and an output buffer.
How can I do that, please?
Thanks
David