writeAsn1VarInt

fun Sink.writeAsn1VarInt(number: ULong): Int(source)
fun Sink.writeAsn1VarInt(number: UInt): Int(source)

Encodes this number using varint encoding as used within ASN.1: groups of seven bits are encoded into a byte, while the highest bit indicates if more bytes are to come

Return

the number of bytes written to the sink