Resume
Continue the read where it stopped when the document is found again; at most maxRestarts times in a row that make no progress. A lost link after an attempt that read more bytes of the data groups than the attempts before it (counting the bytes kept, and a data group cut off) uses no restart, so a read that keeps getting somewhere is not ended by the limit; the platform's total time limit still ends it (Android NfcReadSettings.totalTimeLimitMillis; on iPhone the system session's own limit).
The access protocol runs again, then the reader reads EF.SOD (the chip's signed list of data group hashes) again and compares it byte for byte with the earlier one:
When they are equal, the data groups already read are kept and not read again, and a data group cut off by the loss continues from the byte where it stopped. A continued data group is kept only when its hash matches the one in EF.SOD at once; otherwise it is read again in full, once, in the same session. Every data group is still checked against EF.SOD at the end, as in any read.
When they differ, or EF.SOD could not be read in one of the attempts, nothing from the earlier attempt is kept and the read starts over, as with ReadAgain. ChipRead.resume records which case happened.
Files that no hash can vouch for are always read again in full: EF.COM, EF.SOD itself, and the files of the master file (EF.CardAccess, EF.CardSecurity). Chip authentication and active authentication run again in the new session: their outcomes, and every other check that needs the chip, always come from the last attempt. ChipFile.attempt says which attempt read each file. The identity check is the signed data, never the chip's radio identifier (many chips give a random one).
Since
1.0.0
Throws
when maxRestarts is outside 1 to 3.
Properties
Functions
Equal when maxRestarts is equal.
A hash of maxRestarts.