LzmaSDKObjC
LzmaSDKObjC copied to clipboard
Hello, how do I use the sdk to do split volume compression
Hello, how do I use the sdk to do split volume compression
Hi, use PLzmaSDK and not this prototype.
- Compression/encoding process uses single output stream to write compressed/encoded data(archive file).
- 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