Added C backed version of read_long, read_string and read_varint