NoopStreamCodec class final

Pass-through streaming codec that performs no compression

Useful for testing streaming pipelines, benchmarking, and as a placeholder when compression is optional. Decompression enforces the cumulative maxSize; nothing is buffered, so there is no buffer limit.

Inheritance

Constructors

NoopStreamCodec({int? maxSize = defaultMaxSize})
Creates a pass-through streaming codec. maxSize caps cumulative decompressed output (null for unlimited, trusted input only).

Properties

compressor → StreamTransformer<Uint8List, Uint8List>
Creates a stream transformer for compression
no setterinherited
decompressor → StreamTransformer<Uint8List, Uint8List>
Creates a stream transformer for decompression
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
maxSize → int?
Maximum cumulative decompressed size, or null for unlimited.
final
name → String
The codec's name in upper case: 'NOOP', 'SNAPPY', 'GZIP', 'LZ4' or 'ZSTD'.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

compress(Stream<Uint8List> input) → Stream<Uint8List>
Compresses a stream of data chunks
override
decompress(Stream<Uint8List> input) → Stream<Uint8List>
Decompresses a stream of compressed data chunks
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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