?????? ? ???????? LZip
Contents
[
Hide
Show
]?????
????? Lzip ????????? ? Linux. ??? ???????????? ???????? LZMA. API Aspose.ZIP ??? .NET ??? ????? ????????? ?? ?????????? ??????? Lzip ? ?????????? ???? ? ????? ????????? ??? ??????? ? ????-???? ????????? ?????????.�API Aspose.ZIP ????? ????� LzipArchive�??? ?????? ? ?????? ????????. ??? ???? ????? ??????? ?????? ??? ????????? ???????? ??? ????????.
???????? ????
? ?????????? ????? ???????? ???? ????????, ?? ???????? ???? ?? ????????? ?????????? LzipArchive.
1 using (LzipArchive archive = new LzipArchive())
2 {
3 archive.SetSource("data.bin");
4 archive.Save("data.bin.lz");
5 }?????????? ????? Lzip
????????? ??????? ??????? ???? ???????, ?? ???????? ????? Lzip.
1 using (FileStream sourceLzipFile = File.Open("data.bin.lz", FileMode.Open))
2 {
3 using (FileStream extractedFile = File.Open("data.bin", FileMode.Create))
4 {
5 using (LzipArchive archive = new LzipArchive(sourceLzipFile))
6 {
7 archive.Extract(extractedFile);
8 }
9 }
10 }