ChecksumProvider class abstract

Computes integrity digests for files and chunks.

Hashing is opt-in (see ChecksumMode) because it costs a full extra read of the file. Implement this interface to use a cheaper rolling hash, a platform-native digest, or a server-specific scheme such as S3's multipart ETag.

Implementers

Constructors

ChecksumProvider()
Const constructor so providers can be const.
const

Properties

algorithm → String
Name of the algorithm, e.g. md5. Sent to adapters alongside digests.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculate(File file) → Future<String>
Digests the whole file.
calculateBytes(List<int> bytes) → Future<String>
Digests an in-memory buffer, used for per-chunk checksums.
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