Var int,string,intlist encoding/decoding