Class LzmaCompressionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
การตั้งค่าที่จำเป็นสำหรับการทำงานของคอมเพรสเซอร์หรือดีคอมเพรสเซอร์
public class LzmaCompressionSettings : CompressionSettings
การสืบทอด
object ← CompressionSettings ← LzmaCompressionSettings
สมาชิกที่สืบทอด
CompressionSettings.Bzip2, CompressionSettings.Deflate, CompressionSettings.EnhancedDeflate, CompressionSettings.Store, CompressionSettings.Lzma, CompressionSettings.Xz, CompressionSettings.PPMd, CompressionSettings.Zstd, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
หมายเหตุ
อัลกอริธึม Lempel–Ziv–Markov chain (LZMA) เป็นอัลกอริธึมที่ใช้ในการบีบอัดข้อมูลแบบไม่มีการสูญเสีย อัลกอริธึมนี้ใช้โครงการการบีบอัดแบบพจนานุกรมซึ่งมีความคล้ายคลึงกับอัลกอริธึม LZ77 และมีอัตราการบีบอัดสูงและขนาดพจนานุกรมการบีบอัดที่เปลี่ยนแปลงได้
ดูเพิ่มเติม: https://en.wikipedia.org/wiki/Lempel–Ziv–Markov_chain_algorithm
ตัวสร้าง
LzmaCompressionSettings()
เริ่มต้นอินสแตนซ์ใหม่ของคลาส Aspose.Zip.Saving.LzmaCompressionSettings ด้วยขนาดพจนานุกรมเริ่มต้นเท่ากับ 16 เมกะไบต์
public LzmaCompressionSettings()
ตัวอย่าง
using (Archive archive = new Archive(new ArchiveEntrySettings(new LzmaCompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}