portableStorageImage method

String portableStorageImage()

Encodes the resident storage, excluding external and execution state.

Call at a settled tick boundary without concurrent signal updates.

Implementation

String portableStorageImage() {
  if (Simulator.phase != SimulatorPhase.outOfTick) {
    throw StateError('Associative storage images require a tick boundary.');
  }
  return _model.snapshot().toPortableString();
}