Open
Description
I have a tcp connection that receives the zstd compressed data. Let's assume I do a data = socket.read(16*1024)
and this fills my data with a zstd frame and another partial zstd frame. If I use decompressor.decompress(buf)
(decompressor being an instance of Zstd::StreamingDecompress) I only get back the data of the first frame. How can I know how much data from data
has not been processed and needs to be reused after receiving more data from the socket? Afaik the original zstd library returns this information, but the ruby abstraction discards it?
Metadata
Metadata
Assignees
Labels
No labels