XarBzip2CompressionSettings
XarBzip2CompressionSettings constructor (1 of 2)
Initializes a new instance of the XarBzip2CompressionSettings
class.
public XarBzip2CompressionSettings(int blockSize)
Parameter | Type | Description |
---|---|---|
blockSize | Int32 | Block size in hundreds of kilobytes. |
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Block size is not between 1 and 9. |
Examples
using (XarArchive archive = new XarArchive())
{
archive.CreateEntry("data.bin", "data.bin", new XarBzip2CompressionSettings(1));
archive.Save("archive.xar");
}
See Also
- class XarBzip2CompressionSettings
- namespace Aspose.Zip.Xar
- assembly Aspose.Zip
XarBzip2CompressionSettings constructor (2 of 2)
Initializes a new instance of the XarBzip2CompressionSettings
class with default block size, equals to 9 hundred of kilobytes.
public XarBzip2CompressionSettings()
See Also
- class XarBzip2CompressionSettings
- namespace Aspose.Zip.Xar
- assembly Aspose.Zip