BitDecoder class abstract

A generic decoder that repacks a bit stream into fixed-width words.

Treats the encoded input as a continuous stream of source-bit words (most significant bit first) and regroups the bits into target-bit words. A negative value, or a value wider than source bits, marks the end of the input. A leftover non-zero partial word throws a FormatException. Both source and target must be in the range 2 to 64.

This is the shared engine behind the fixed-width base codecs.

Inheritance

Constructors

BitDecoder()
Creates a new BitDecoder instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source int
The bit-length of the input array elements. The value should be between 2 to 64.
no setterinherited
target int
The bit-length of the output array elements. The value should be between 2 to 64.
no setterinherited

Methods

bind(Stream<Iterable<int>> stream) Stream<Iterable<int>>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(covariant List<int> encoded) List<int>
Converts encoded array of numbers with bit-length of source to an array of numbers with bit-length of target. The encoded array will be treated as a sequence of bits to convert.
override
fuse<TT>(Converter<Iterable<int>, TT> other) Converter<Iterable<int>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<Iterable<int>> sink) Sink<Iterable<int>>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited

Operators

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