writeVarint32

fun writeVarint32(value: Int)

Encode and write a varint. value is treated as unsigned, so it won't be sign-extended if negative.