fn decode(d: *Decoder, comptime T: type) T

Use this function to increase idx.

Parameters

d: *Decoder,
T: type,