ZstdEncoder class
The ZstdEncoder encoder is used to zstd compress data.
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< sink) → ByteConversionSinkint> > -
Ensure a conversion to ByteConversionSink which provides an interface
for converters to efficiently transmit byte data.
inherited
-
bind(
Stream< List< stream) → Stream<int> >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< other) → Converter<int> , TT>List< int> , TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performOneShotConversion(
Sink< List< sink, List<int> >int> bytes) → bool -
Subclasses may override to perform a one-shot optimized conversion of
bytes
to thesink
.inherited -
startChunkedConversion(
Sink< List< sink) → ByteConversionSinkint> > -
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