Reads a varint.
BufferOverflowException if there isn't enough data to read.
t { import xbuffer.varint; Buffer buffer = new Buffer(cast(ubyte[])[2, 1]); assert(buffer.readVar!int() == 1); assert(buffer.read!varuint() == 1);
See Implementation
Reads a varint.