StorageBackendMemory constructor
StorageBackendMemory(
- Uint8List? bytes,
- HiveCipher? _cipher, [
- int initialOffset = 0
Default constructor for the StorageBackendMemory
If needed, provide a Uint8List with already existing bytes and the
corresponding initialOffset
. For encryption, provide a _cipher
.
Implementation
StorageBackendMemory(Uint8List? bytes, this._cipher,
[int initialOffset = 0]) {
_randomAccessBuffer =
RandomAccessBuffer(bytes, initialOffset: initialOffset);
}