StorageBackendMemory constructor

StorageBackendMemory(
  1. Uint8List? bytes,
  2. HiveCipher? _cipher, [
  3. 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);
}