load method
- covariant SetAssociativeCacheSidecarImage<
DataType> image
override
Restores an image with matching cache geometry.
Implementation
@override
void load(SetAssociativeCacheSidecarImage<DataType> image) {
if (image.setCount != setCount || image.wayCount != wayCount) {
throw ArgumentError('Image geometry must match cache geometry.');
}
_tags = List<int?>.from(image.tags);
_payloads = List<DataType?>.from(image.payloads);
_allocatedSlots = Set<int>.from(image.allocatedSlots);
}