make functions as static functions of Varint