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.
Constructors
- ChecksumProvider()
-
Const constructor so providers can be const.
const
Properties
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