stateSizeBytes method
Measures the byte size of one sequence's current state (KV cache plus bookkeeping) without writing it anywhere.
This is the exact size saveState would write for the current cache, so callers can budget memory or disk before snapshotting.
Implementation
Future<int> stateSizeBytes({int sequenceId = 0}) =>
_isolate.stateSize(id, sequenceId: sequenceId);