Skip to main content

Brotli

Namespace: System.IO.Compression

Assembly: Wisej.Web.Ext.Brotli

Represents a Brotli stream for compression or decompression.

public class BrotliStream : BrotliStream

Constructors

Instance memberBrotliStream(stream, level, leaveOpen)

Initializes a new instance of the BrotliStream class using the specified stream and compression level, and optionally leaves the stream open.

NameTypeDescription
streamStreamThe stream to compress or decompress.
levelCompressionLevelOne of CompressionLevel values that indicates the level of compression to adopt.
leaveOpenBooleantrue to leave the stream open after disposing the BrotliStream object; otherwise, false.

Instance memberBrotliStream(stream, level)

Initializes a new instance of the BrotliStream class using the specified stream and compression mode, and optionally leaves the stream open.

NameTypeDescription
streamStreamThe stream to compress or decompress.
levelCompressionLevelOne of CompressionLevel values that indicates the level of compression to adopt.

Instance memberBrotliStream(stream, mode, leaveOpen)

Initializes a new instance of the BrotliStream class using the specified stream and compression mode, and optionally leaves the stream open.

NameTypeDescription
streamStreamThe stream to compress or decompress.
modeCompressionModeOne of the enumeration values that indicates whether to compress or decompress the stream.
leaveOpenBooleantrue to leave the stream open after disposing the BrotliStream object; otherwise, false.

Instance memberBrotliStream(stream, mode)

Initializes a new instance of the BrotliStream class using the specified stream and compression mode.

NameTypeDescription
streamStreamThe stream to compress or decompress.
modeCompressionModeOne of the enumeration values that indicates whether to compress or decompress the stream.

Inherited

Properties

NameDescriptionFrom
CanReadBrotliStream
CanSeekBrotliStream
CanTimeoutStream
CanWriteBrotliStream
LengthBrotliStream
PositionBrotliStream
ReadTimeoutStream
WriteTimeoutStream

Methods

NameDescriptionFrom
BeginRead(buffer, offset, count, callback, state)Stream
BeginWrite(buffer, offset, count, callback, state)Stream
Close()Stream
CopyTo(destination)Stream
CopyTo(destination, bufferSize)Stream
CopyToAsync(destination, bufferSize, cancellationToken)Stream
CopyToAsync(destination)Stream
CopyToAsync(destination, bufferSize)Stream
CreateObjRef(requestedType)MarshalByRefObject
Dispose()Stream
EndRead(asyncResult)Stream
EndWrite(asyncResult)Stream
Flush()BrotliStream
FlushAsync()Stream
FlushAsync(cancellationToken)Stream
GetLifetimeService()MarshalByRefObject
InitializeLifetimeService()MarshalByRefObject
Read(buffer, offset, count)BrotliStream
ReadAsync(buffer, offset, count, cancellationToken)Stream
ReadAsync(buffer, offset, count)Stream
ReadByte()Stream
Seek(offset, origin)BrotliStream
SetLength(value)BrotliStream
SetQuality(quality)Set the compress quality(0~11)BrotliStream
SetWindow(window)Set the compress LGWin(10~24)BrotliStream
TruncateBeginning(ms, numberOfBytesToRemove)BrotliStream
Write(buffer, offset, count)BrotliStream
WriteAsync(buffer, offset, count, cancellationToken)Stream
WriteAsync(buffer, offset, count)Stream
WriteByte(value)Stream