decodeAsn1VarULong

Decodes an ASN.1 unsigned varint to an ULong, copying all bytes from the source into a ByteArray.

Return

the decoded ULong and the underlying varint-encoded bytes as ByteArray

Throws

if the number is larger than ULong.MAX_VALUE