ZstdEncoder class

The ZstdEncoder encoder is used to zstd compress data.

Inheritance

Constructors

ZstdEncoder({int level = ZstdOption.defaultLevel, int inputBufferLength = zstdEncoderInputBufferLength, int outputBufferLength = zstdEncoderOutputBufferLength})
Construct an ZstdEncoder with the supplied parameters used by the Zstd encoder.

Properties

hashCode int
The hash code for this object.
no setterinherited
inputBufferLength int
Length in bytes of the buffer used for input data.
final
level int
The compression-level can be set in the range of -[ZstdConstants.ZSTD_TARGETLENGTH_MAX]..22, with ZstdOption.defaultLevel being the default compression level.
final
outputBufferLength int
Length in bytes of the buffer used for processed output data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asByteSink(Sink<List<int>> sink) ByteConversionSink
Ensure a conversion to ByteConversionSink which provides an interface for converters to efficiently transmit byte data.
inherited
bind(Stream<List<int>> stream) Stream<List<int>>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(List<int> bytes) List<int>
Encode/Decode a List of bytes.
inherited
fuse<TT>(Converter<List<int>, TT> other) Converter<List<int>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performOneShotConversion(Sink<List<int>> sink, List<int> bytes) bool
Subclasses may override to perform a one-shot optimized conversion of bytes to the sink.
inherited
startChunkedConversion(Sink<List<int>> sink) ByteConversionSink
Start a chunked conversion using the options given to the ZstdEncoder constructor.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited