XZ implementaion doubts

Sebu Elias
  • Sebu Elias

    Sebu Elias - 2017-01-10

    Can you please let me know if the LZMA2 code used in XZ and 7z code are the same?
    As in, I know XZ has made some changes to suit them in the lzma2 code, but will it work if I implement it using the code from LZMA sdk?

  • Igor Pavlov

    Igor Pavlov - 2017-01-10

    I don't understand your question.
    xz uses lzma2.
    lzma2 is just data stream.
    xz provides more features over lzma2: headers, CRC, additional filters.
    xz_without_crc_and_without_filters is just lzma2 with additional headers: headers before and after lzma2 stream.

    • Sebu Elias

      Sebu Elias - 2017-01-11

      Thank you, that clears my doubt

  • Igor Pavlov

    Igor Pavlov - 2017-01-11

    "lzma sdk" uses same lzma2 code for lzma2 in 7z and lzma2 in xz.
    But the code in "xz utils" is not identical to "lzma sdk" code.
    But data streams must be compatible in any case.
    So you can use any code.

    • Sebu Elias

      Sebu Elias - 2017-01-11

      Thank you, that was my doubt.
      Cleared :)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks