Reads a varByte from buf at the specified offset
Buffer object from where the bytes will be read
Number of bytes to skip before starting to read
Size of the serialized data
the bytes size of a serialized VarByte
Writes data to buf at the specified offset
Buffer of bytes to be written to buf
Buffer object where the bytes will be written
Number of bytes to skip before starting to write.
Offset plus the number of bytes that has been written
Class to handle the protocol VarByte type http://dev.nuls.io/protocol/index.html#VarByte