remainingBytes property

int get remainingBytes

How many bytes the card is still holding.

6100 means 256, not zero: a card with nothing left to give answers 9000, so SW2 of zero is the full short-form length -- the same convention the Le byte uses.

Implementation

int get remainingBytes => statusWord2 == 0 ? 256 : statusWord2;