SharedMemoryStorage constructor

SharedMemoryStorage({
  1. Uint8List? initialBytes,
})

Creates shared storage, optionally seeded with container initialBytes.

Implementation

SharedMemoryStorage({Uint8List? initialBytes})
  : _memory = initialBytes == null
        ? MemoryStorageBackend()
        : MemoryStorageBackend.fromBytes(initialBytes);