fromTwosComplementByteArray
fun UInt.Companion.fromTwosComplementByteArray(it: ByteArray, lenient: Boolean = false): UInt(source)
fun Long.Companion.fromTwosComplementByteArray(it: ByteArray, lenient: Boolean = false): Long(source)
fun ULong.Companion.fromTwosComplementByteArray(it: ByteArray, lenient: Boolean = false): ULong(source)
Parameters
lenient
Relaxes DER constraints, which are:
The content of the
INTEGERtype is not empty.The
INTEGERvalue is minimally encoded, verifying that:Positive ints do not contain leading zero bytes unless necessary.
Negative ints do not use excessive sign extension bytes.