Bzip2SaveOptions.Bzip2SaveOptions

Bzip2SaveOptions(int)

Initialisiert eine neue Instanz vonBzip2SaveOptions Klasse.

public Bzip2SaveOptions(int blockSize)
ParameterTypBeschreibung
blockSizeInt32Blockgröße in Hunderten von Kilobyte.

Ausnahmen

AusnahmeBedingung
ArgumentOutOfRangeExceptionDie Blockgröße liegt nicht im gültigen Bereich.

Beispiele

using (FileStream result = File.Open("archive.bz2"))
{
    using (Bzip2Archive archive = new Bzip2Archive())
    {
        archive.SetSource("data.bin");
        archive.Save(result, new Bzip2SaveOptions(9));
    }
}

Siehe auch


Bzip2SaveOptions()

Initialisiert eine neue Instanz vonBzip2SaveOptions Klasse mit Standardblockgröße, entspricht 900 Kilobyte.

public Bzip2SaveOptions()

Beispiele

using (FileStream result = File.Open("archive.bz2"))
{
    using (Bzip2Archive archive = new Bzip2Archive())
    {
        archive.SetSource("data.bin");
        archive.Save(result, new Bzip2SaveOptions());
    }
}

Siehe auch