HashDigestSink class abstract

This sink allows adding arbitrary length byte arrays and produces a HashDigest on close.

Implemented types
Implementers

Constructors

HashDigestSink()
const

Properties

closed bool
Returns true if the sink is closed, false otherwise
no setter
hashCode int
The hash code for this object.
no setterinherited
hashLength int
The length of generated hash in bytes
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(List<int> data, [int start = 0, int? end]) → void
Adds data to the message-digest.
override
close() → void
Finalizes the message-digest. It calls digest method internally.
override
digest() HashDigest
Finalizes the message-digest and returns a HashDigest
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the current state to start from fresh state
toString() String
A string representation of this object.
inherited

Operators

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