XZ implementaion doubts

Sebu Elias
2017-01-10
2017-01-11
  • Sebu Elias

    Sebu Elias - 2017-01-10

    HI,
    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

    Correction:
    "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