toVarint

Encode a type as a varint.

Meta