Package com.qytech.pcscreader

Types

SmartCardManager
Link copied to clipboard
class SmartCardManager(context: Context, listener: SCardStatusChangeListener?, coroutineContext: CoroutineContext) : ISmartCardManager, CoroutineScope

Functions

addHexValue
Link copied to clipboard
fun String.addHexValue(value: Long): String
desParity
Link copied to clipboard
fun String.desParity(): String
将数据转化为 16 进制的数据,并且对每一位进行奇偶校验,调整数据的奇偶校验位
hexDecodeToString
Link copied to clipboard
fun String.hexDecodeToString(): String
hexToASCII
Link copied to clipboard
fun String.hexToASCII(): String
paddingHexString
Link copied to clipboard
fun String.paddingHexString(): String
parity
Link copied to clipboard
fun Int.parity(): Int
调整奇偶校验位: 将数据转化为二进制之后计算数据中 1 的个数 如果是偶数个的 1 则将数据最后一位取反
substringWithLength
Link copied to clipboard
fun String.substringWithLength(start: Int, length: Int): String
subtractionHexValue
Link copied to clipboard
fun String.subtractionHexValue(value: Long): String
toHexByteArray
Link copied to clipboard
fun String.toHexByteArray(size: Int = 0): ByteArray
将字符串转化为 16 进制编码的 ByteArray数组
toHexString
Link copied to clipboard
fun Byte.toHexString(): String
fun Int.toHexString(): String
fun ByteArray.toHexString(): String
将ByteArray转化为 16 进制编码的字符串
xOr
Link copied to clipboard
fun ByteArray.xOr(b1: ByteArray): ByteArray