CacheModelBackingStoreImage constructor

CacheModelBackingStoreImage({
  1. required int dataWidth,
  2. required int metadataWidth,
  3. required Map<BigInt, CacheModelBlock> entries,
  4. int? addrWidth,
  5. @Deprecated('Use addrWidth instead.') int? addressWidth,
})

Creates an immutable image.

addressWidth is the deprecated former name of addrWidth.

Implementation

CacheModelBackingStoreImage({
  required this.dataWidth,
  required this.metadataWidth,
  required Map<BigInt, CacheModelBlock> entries,
  int? addrWidth,
  @Deprecated('Use addrWidth instead.') int? addressWidth,
})  : addrWidth = resolveAddrWidth(addrWidth, addressWidth),
      entries = Map.unmodifiable(entries);