readBinary

suspend fun readBinary(offset: Int, length: Int): ByteArray

Reads binary data according to ISO 7816-4 clause 11.3.3.

Return

the data which was read.

Parameters

offset

offset of where to read from.

length

amount of data to read, must be positive.

Throws

if the command fails.