LzmaSDKObjC icon indicating copy to clipboard operation
LzmaSDKObjC copied to clipboard

Hello, how do I use the sdk to do split volume compression

Open Ivan5201314 opened this issue 1 year ago • 1 comments

Hello, how do I use the sdk to do split volume compression

Ivan5201314 avatar Dec 16 '22 09:12 Ivan5201314

Hi, use PLzmaSDK and not this prototype.

  1. Compression/encoding process uses single output stream to write compressed/encoded data(archive file).
  2. PLzmaSDK provides 3 types of out streams: 2.1. Out memory stream -> compressed data is written to heap memory. 2.2. Out path stream -> compressed data is written to a file by path. 2.3. Out multi stream -> compressed data is written to several internal streams of type 2.1 or 2.2 splitting by part size in bytes.

So, the case 2.3 Out multi stream is yours.

Examples from tests:

  • Swift: https://github.com/OlehKulykov/PLzmaSDK/blob/master/swift_pm_tests/plzmaTests/Compress.swift#L20
  • JavaScript: https://github.com/OlehKulykov/PLzmaSDK/blob/master/node_tests/tests.js#L321
  • CPP: https://github.com/OlehKulykov/PLzmaSDK/blob/master/cmake_tests/test_plzma_multivolume.cpp#L311
  • C: https://github.com/OlehKulykov/PLzmaSDK/blob/master/cmake_tests/test_plzma_multivolume.cpp#L467

OlehKulykov avatar Dec 16 '22 14:12 OlehKulykov