fn slice(d: *Decoder, len: usize) []u8
Use this function to increase idx.
idx
d: *Decoder,
len: usize,