Lz4Encoder class

The Lz4Encoder encoder is used to lz4 compress data.

Inheritance

Constructors

Lz4Encoder({int level = Lz4Option.defaultLevel, bool fastAcceleration = false, bool contentChecksum = false, bool blockChecksum = false, bool blockLinked = true, int blockSize = Lz4Option.defaultBlockSize, bool optimizeForDecompression = false, int inputBufferLength = lz4EncoderInputBufferLength, int outputBufferLength = lz4EncoderOutputBufferLength})
Construct an Lz4Encoder with the supplied parameters used by the Lz4 encoder.

Properties

blockChecksum bool
When true, a checksum is added to the end of each block during compression, and validates the block data during decompression. The default value is false.
final
blockLinked bool
When true, blocks are compressed in linked mode which dramatically improves compression, specifically for small blocks. The default value is true.
final
blockSize int
The maximum size to use for blocks. The larger the block, the (slightly) better compression ratio. However, more memory is consumed for both compression and decompression. The default value is blockSize64KB.
final
contentChecksum bool
When true, a checksum is added to the end of a frame during compression, and checked during decompression. An enabled, all blocks are present and in the correct order. The default value is false.
final
fastAcceleration bool
When true, use ultra-fast compression speed mode, at the cost of some compression ratio. The default value is false.
final
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 0..16, with 0 (fast mode) being the default compression level.
final
optimizeForDecompression bool
When true, generate compress data optimized for decompression speed. The size of the compressed data may be slightly larger, however the decompression speed should be improved. Note: This option will be ignored if level < 9.
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 Lz4Encoder constructor.
override
toString() String
A string representation of this object.
inherited

Operators

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