Share via


Compressor 构造函数

定义

重载

Compressor(IOutputStream)

创建压缩器实例。

Compressor(IOutputStream, CompressAlgorithm, UInt32)

创建压缩器实例。

Compressor(IOutputStream)

创建压缩器实例。

public:
 Compressor(IOutputStream ^ underlyingStream);
 Compressor(IOutputStream const& underlyingStream);
public Compressor(IOutputStream underlyingStream);
function Compressor(underlyingStream)
Public Sub New (underlyingStream As IOutputStream)

参数

underlyingStream
IOutputStream

压缩器要写入的压缩信息流。

另请参阅

适用于

Compressor(IOutputStream, CompressAlgorithm, UInt32)

创建压缩器实例。

public:
 Compressor(IOutputStream ^ underlyingStream, CompressAlgorithm algorithm, unsigned int blockSize);
 Compressor(IOutputStream const& underlyingStream, CompressAlgorithm const& algorithm, uint32_t const& blockSize);
public Compressor(IOutputStream underlyingStream, CompressAlgorithm algorithm, uint blockSize);
function Compressor(underlyingStream, algorithm, blockSize)
Public Sub New (underlyingStream As IOutputStream, algorithm As CompressAlgorithm, blockSize As UInteger)

参数

underlyingStream
IOutputStream

压缩器要写入的压缩信息流。

algorithm
CompressAlgorithm

压缩器用于写入 underlyingStream 的压缩算法。

blockSize
UInt32

unsigned int

uint32_t

压缩算法使用的中间缓冲区的大小(以字节为单位)。 值为 0 指定压缩算法将使用其默认块大小。 此参数的有效非零值为 32Kb 到 64Mb。

另请参阅

适用于