HashBase class abstract
The base class used by the hash algorithm implementations. It implements the StreamTransformer and exposes few convenient methods to handle any types of data source.
- Implemented types
- Implementers
Constructors
- HashBase()
-
const
Properties
Methods
-
bind(
Stream< List< stream) → Stream<int> >HashDigest> -
Transforms the byte array input stream to generate a new stream
which contains a single HashDigest
override
-
cast<
RS, RT> () → StreamTransformer< RS, RT> -
Provides a
StreamTransformer<RS, RT>
view of this stream transformer.override -
consume(
Stream< List< stream) → Future<int> >HashDigest> -
Consumes the entire
stream
of byte array and generates a HashDigest. -
consumeAs(
Stream< String> stream, [Encoding encoding = latin1]) → Future<HashDigest> -
Consumes the entire
stream
of string and generates a HashDigest. -
convert(
List< int> input) → HashDigest -
Process the byte array
input
and returns a HashDigest. -
createSink(
) → HashDigestSink - Create a HashDigestSink for generating message-digests
-
file(
File input, [int start = 0, int? end]) → Future< HashDigest> -
Converts the
input
file and returns a HashDigest asynchronously. -
fileSync(
File input, {int start = 0, int? end, int bufferSize = 2048}) → HashDigest -
Converts the
input
file and returns a HashDigest synchronously. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
string(
String input, [Encoding? encoding]) → HashDigest -
Process the
input
string and returns a HashDigest. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited