t-mat / lz4mt

Platform independent, multi-threading implementation of lz4 stream in C++11
Other
199 stars 47 forks source link

Reason Frame Format is not implemented #40

Closed sapoluri closed 4 years ago

sapoluri commented 4 years ago

I am trying to understand why Frame Format is not included in the implementation. Would a file compressed by this implementation be decompressed by someone without knowing any details about how it was compressed as long as it was LZ4 compression?

Here is my understanding:

  1. This implementation is cross compatible with the CLI of LZ4. This means, the person decompressing a file compressed with this implementation will need to know details that otherwise would have been in the Frame and block Header?
  2. Other implementations that don't get this info from the user and try to find it in the compressed file won't be able to decompress it?

Frame format is necessary to let anyone decompress a file without knowing anything about it. Is that a fair understanding?

sapoluri commented 4 years ago

Nevermind, I found the function makeHeader which seems to be creating the Frame Header.