Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 351 for dtoi (0.1 sec)

  1. src/vendor/golang.org/x/crypto/sha3/shake.go

    //
    //
    // SHAKE implementation is based on FIPS PUB 202 [1]
    // cSHAKE implementations is based on NIST SP 800-185 [2]
    //
    // [1] https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
    // [2] https://doi.org/10.6028/NIST.SP.800-185
    
    import (
    	"encoding/binary"
    	"hash"
    	"io"
    )
    
    // ShakeHash defines the interface to hash functions that support
    // arbitrary-length output. When used as a plain [hash.Hash], it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/abt/avlint32_test.go

    }
    func second(x, y interface{}) interface{} {
    	return y
    }
    func alwaysNil(x, y interface{}) interface{} {
    	return nil
    }
    func smaller(x, y interface{}) interface{} {
    	xi, _ := strconv.Atoi(fmt.Sprint(x))
    	yi, _ := strconv.Atoi(fmt.Sprint(y))
    	if xi < yi {
    		return x
    	}
    	return y
    }
    func assert(t *testing.T, expected, got *T, what string) {
    	s, _ := got.wellFormed()
    	if s != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 11 16:34:41 UTC 2022
    - 20.3K bytes
    - Viewed (0)
  3. pkg/proxy/ipvs/ipset/ipset.go

    func validatePortRange(portRange string) error {
    	strs := strings.Split(portRange, "-")
    	if len(strs) != 2 {
    		return fmt.Errorf("invalid PortRange: %q", portRange)
    	}
    	for i := range strs {
    		num, err := strconv.Atoi(strs[i])
    		if err != nil {
    			return fmt.Errorf("invalid PortRange: %q", portRange)
    		}
    		if num < 0 {
    			return fmt.Errorf("invalid PortRange: %q", portRange)
    		}
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  4. pkg/volume/iscsi/iscsi.go

    	}
    	arr := strings.Split(device, "-lun-")
    	if len(arr) < 2 {
    		return volume.ReconstructedVolume{}, fmt.Errorf("failed to retrieve lun from globalPDPath: %v", globalPDPath)
    	}
    	lun, err := strconv.Atoi(arr[1])
    	if err != nil {
    		return volume.ReconstructedVolume{}, err
    	}
    	iface, _ := extractIface(globalPDPath)
    	iscsiVolume := &v1.Volume{
    		Name: volumeName,
    		VolumeSource: v1.VolumeSource{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. pkg/kubelet/util/manager/cache_based_manager.go

    		if err != nil {
    			return time.Duration(0), false
    		}
    		if node != nil && node.Annotations != nil {
    			if value, ok := node.Annotations[v1.ObjectTTLAnnotationKey]; ok {
    				if intValue, err := strconv.Atoi(value); err == nil {
    					return time.Duration(intValue) * time.Second, true
    				}
    			}
    		}
    		return time.Duration(0), false
    	}
    }
    
    func (s *objectStore) isObjectFresh(data *objectData) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. src/strconv/example_test.go

    	b16 = strconv.AppendUint(b16, 42, 16)
    	fmt.Println(string(b16))
    
    	// Output:
    	// uint (base 10):42
    	// uint (base 16):2a
    }
    
    func ExampleAtoi() {
    	v := "10"
    	if s, err := strconv.Atoi(v); err == nil {
    		fmt.Printf("%T, %v", s, s)
    	}
    
    	// Output:
    	// int, 10
    }
    
    func ExampleCanBackquote() {
    	fmt.Println(strconv.CanBackquote("Fran & Freddie's Diner ☺"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 22:57:37 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. security/pkg/k8s/chiron/utils_test.go

    func getServerPort(server *httptest.Server) (int, error) {
    	strs := strings.Split(server.URL, ":")
    	if len(strs) < 2 {
    		return 0, fmt.Errorf("server.URL is invalid: %v", server.URL)
    	}
    	port, err := strconv.Atoi(strs[len(strs)-1])
    	if err != nil {
    		return 0, fmt.Errorf("error to extract port from URL: %v", server.URL)
    	}
    	return port, nil
    }
    
    func initFakeKubeClient(t test.Failer, certificate []byte) kube.CLIClient {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. common/config/.golangci.yml

        # default is false: such cases aren't reported by default.
        check-type-assertions: false
        # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
        # default is false: such cases aren't reported by default.
        check-blank: false
      govet:
        disable:
          # report about shadowed variables
          - shadow
      goimports:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  9. cmd/bucket-listobjects-handlers.go

    	if token == "" {
    		return token, -1
    	}
    	i := strings.Index(token, getKeySeparator())
    	if i < 0 {
    		return token, -1
    	}
    	nodeIndex, err := strconv.Atoi(token[i+1:])
    	if err != nil {
    		return token, -1
    	}
    	subToken = token[:i]
    	return subToken, nodeIndex
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. src/database/sql/driver/types.go

    		u64 := rv.Uint()
    		if u64 > (1<<31)-1 {
    			return nil, fmt.Errorf("sql/driver: value %d overflows int32", v)
    		}
    		return int64(u64), nil
    	case reflect.String:
    		i, err := strconv.Atoi(rv.String())
    		if err != nil {
    			return nil, fmt.Errorf("sql/driver: value %q can't be converted to int32", v)
    		}
    		return int64(i), nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top