UVaultWriter class

Encrypting sink. Plaintext offsets in, sealed chunks out.

Implemented types

Properties

chunkSize → int
no setter
expectedLength ← int?
When the total plaintext length is known up front, the final chunk can be sealed as soon as it fills instead of waiting for finish.
no getter
hashCode → int
The hash code for this object.
no setterinherited
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
override
durableOffset(int position) → int
Plaintext offsets below this are safely on disk; everything after must be re-downloaded after a crash. Used by the download engine to persist resumable progress.
finish(int totalLength) → Future<void>
Seals the final chunk. totalLength is the full plaintext length.
flush() → Future<void>
override
length() → Future<int>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
truncate(int length) → Future<void>
override
writeAt(int position, List<int> bytes) → Future<void>
override

Operators

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