breaking change of api: numToVarInt instead of writeVarInt