CodecSink class

The CodecSink is the base class for encode/decoder sinks.

This was modelled after the _FilterSink from the data_transformer.dart library in the Dart SDK.

And additional concept was added to request the filter to close since there may be potential native resources to cleanup.

Inheritance

Constructors

CodecSink(ByteConversionSink _sink, CodecFilter<dynamic, CodecBuffer> _filter)
Construct new CodecSink which wraps a ByteConversionSink with a specified CodecFilter which will handle the algorithm details.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(List<int> chunk) → void
Adds chunked data to this sink.
override
addSlice(List<int> chunk, int start, int end, bool isLast) → void
Adds the next chunk to this.
override
close() → void
Closes the sink.
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