fn decode(d: *Decoder, comptime T: type) T
Use this function to increase idx.
idx
d: *Decoder,
T: type,