Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 133 for atoi32 (0.17 sec)

  1. src/debug/pe/section.go

    // in COFF string table st instead.
    func (sh *SectionHeader32) fullName(st StringTable) (string, error) {
    	if sh.Name[0] != '/' {
    		return cstring(sh.Name[:]), nil
    	}
    	i, err := strconv.Atoi(cstring(sh.Name[1:]))
    	if err != nil {
    		return "", err
    	}
    	return st.String(uint32(i))
    }
    
    // TODO(brainman): copy all IMAGE_REL_* consts from ldpe.go here
    
    // Reloc represents a PE COFF relocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. test/slice3.go

    		"v20",
    	}
    
    	parse := func(s string) (n int, isconst bool) {
    		if s == "vminus1" {
    			return -1, false
    		}
    		isconst = true
    		if s[0] == 'v' {
    			isconst = false
    			s = s[1:]
    		}
    		n, _ = strconv.Atoi(s)
    		return n, isconst
    	}
    
    	const Cap = 10 // cap of slice, array
    
    	for _, base := range []string{"array", "slice"} {
    		for _, i := range index {
    			iv, iconst := parse(i)
    			for _, j := range index {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.9K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/route.go

    		}
    	}
    	if len(routes) == 0 {
    		return nil, fmt.Errorf("no routes found")
    	}
    	sort.Slice(routes, func(i, j int) bool {
    		iName, err := strconv.Atoi(routes[i].Name)
    		if err != nil {
    			return false
    		}
    		jName, err := strconv.Atoi(routes[j].Name)
    		if err != nil {
    			return false
    		}
    		return iName < jName
    	})
    	return routes, nil
    }
    
    func isPassthrough(action any) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 05:38:17 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/funcinference.go

    		// of Setter, so we can convert it to PT.
    		p := PT(&result[i])
    		// PT has a Set method.
    		p.Set(v)
    	}
    	return result
    }
    
    type Settable int
    
    func (p *Settable) Set(s string) {
    	i, _ := strconv.Atoi(s) // real code should not ignore the error
    	*p = Settable(i)
    }
    
    var _ = FromStrings[Settable]([]string{"1", "2"})
    
    // Suitable error message when the type parameter is provided (rather than inferred).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 21:01:45 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. src/cmd/internal/pgo/deserialize.go

    		}
    		readStr = scanner.Text()
    
    		split := strings.Split(readStr, " ")
    
    		if len(split) != 2 {
    			return nil, fmt.Errorf("preprocessed profile entry got %v want 2 fields", split)
    		}
    
    		co, err := strconv.Atoi(split[0])
    		if err != nil {
    			return nil, fmt.Errorf("preprocessed profile error processing call line: %w", err)
    		}
    
    		edge := NamedCallEdge{
    			CallerName:     callerName,
    			CalleeName:     calleeName,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. src/os/exec/exec_posix_test.go

    	}
    	t.Parallel()
    
    	u, err := user.Current()
    	if err != nil {
    		t.Fatalf("error getting current user: %v", err)
    	}
    
    	uid, err := strconv.Atoi(u.Uid)
    	if err != nil {
    		t.Fatalf("error converting Uid=%s to integer: %v", u.Uid, err)
    	}
    
    	gid, err := strconv.Atoi(u.Gid)
    	if err != nil {
    		t.Fatalf("error converting Gid=%s to integer: %v", u.Gid, err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 20:21:32 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/naming/from_stack.go

    func extractStackCreator() (string, int, bool) {
    	stack := debug.Stack()
    	matches := stackCreator.FindStringSubmatch(string(stack))
    	if len(matches) != 4 {
    		return "", 0, false
    	}
    	line, err := strconv.Atoi(matches[3])
    	if err != nil {
    		return "", 0, false
    	}
    	return matches[2], line, true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 01:31:42 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  8. internal/config/cache/remote.go

    	r.IfNoneMatch = canonicalizeETag(header.Get(xhttp.IfNoneMatch))
    	r.IfRange = header.Get(xhttp.Range)
    	ifPartNumberHeader := header.Get(xhttp.PartNumber)
    	if ifPartNumberHeader != "" {
    		if partNumber, err := strconv.Atoi(ifPartNumberHeader); err == nil {
    			r.IfPartNumber = partNumber
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/pathelement.go

    	case Value:
    		val, err := value.FromJSON([]byte(split[1]))
    		if err != nil {
    			return fieldpath.PathElement{}, err
    		}
    		return fieldpath.PathElement{
    			Value: &val,
    		}, nil
    	case Index:
    		i, err := strconv.Atoi(split[1])
    		if err != nil {
    			return fieldpath.PathElement{}, err
    		}
    		return fieldpath.PathElement{
    			Index: &i,
    		}, nil
    	case Key:
    		kv := map[string]json.RawMessage{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/importer_test.go

    	}
    	vers := regexp.MustCompile(`(\d+)\.(\d+)`).FindSubmatch(verout)
    	if len(vers) == 0 {
    		t.Fatalf("could not find version number in %s", verout)
    	}
    	major, err := strconv.Atoi(string(vers[1]))
    	if err != nil {
    		t.Fatal(err)
    	}
    	minor, err := strconv.Atoi(string(vers[2]))
    	if err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("gccgo version %d.%d", major, minor)
    
    	tmpdir := t.TempDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
Back to top