Decoding handles indices/lengths of more than one octet