Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 112 for atom (0.04 sec)

  1. src/strconv/atoi.go

    		return -int64(cutoff), rangeError(fnParseInt, s0)
    	}
    	n := int64(un)
    	if neg {
    		n = -n
    	}
    	return n, nil
    }
    
    // Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
    func Atoi(s string) (int, error) {
    	const fnAtoi = "Atoi"
    
    	sLen := len(s)
    	if intSize == 32 && (0 < sLen && sLen < 10) ||
    		intSize == 64 && (0 < sLen && sLen < 19) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/strconv/atoc.go

    qiulaidongfeng <******@****.***> 1714788079 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    }
    
    type Stat_t struct { //Linux Definition
    	Dev     uint64
    	Ino     uint64
    	Nlink   uint64
    	Mode    uint32
    	Uid     uint32
    	Gid     uint32
    	_       int32
    	Rdev    uint64
    	Size    int64
    	Atim    Timespec
    	Mtim    Timespec
    	Ctim    Timespec
    	Blksize int64
    	Blocks  int64
    	_       [3]int64
    }
    
    type Stat_LE_t struct {
    	_            [4]byte // eye catcher
    	Length       uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/swig/swig_test.go

    		return
    	}
    
    	var parseError error
    	atoi := func(s string) int {
    		x, err := strconv.Atoi(s)
    		if err != nil && parseError == nil {
    			parseError = err
    		}
    		return x
    	}
    	var major, minor, patch int
    	major = atoi(string(matches[1]))
    	if len(matches[2]) > 0 {
    		minor = atoi(string(matches[2][1:]))
    	}
    	if len(matches[3]) > 0 {
    		patch = atoi(string(matches[3][1:]))
    	}
    	if parseError != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. internal/config/ilm/ilm.go

    	}
    
    	if err = config.CheckValidKeys(config.ILMSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	tw, err := strconv.Atoi(env.Get(EnvILMTransitionWorkers, kvs.GetWithDefault(transitionWorkers, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    
    	ew, err := strconv.Atoi(env.Get(EnvILMExpirationWorkers, kvs.GetWithDefault(expirationWorkers, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/crypto/internal/hpke/hpke_test.go

    		t.Run(vector.Name, func(t *testing.T) {
    			setup := parseVectorSetup(vector.Setup)
    
    			kemID, err := strconv.Atoi(setup["kem_id"])
    			if err != nil {
    				t.Fatal(err)
    			}
    			if _, ok := SupportedKEMs[uint16(kemID)]; !ok {
    				t.Skip("unsupported KEM")
    			}
    			kdfID, err := strconv.Atoi(setup["kdf_id"])
    			if err != nil {
    				t.Fatal(err)
    			}
    			if _, ok := SupportedKDFs[uint16(kdfID)]; !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. internal/config/heal/heal.go

    	}
    	cfg.IOCount, err = strconv.Atoi(env.Get(EnvIOCount, kvs.GetWithDefault(IOCount, DefaultKVS)))
    	if err != nil {
    		return cfg, fmt.Errorf("'heal:max_io' value invalid: %w", err)
    	}
    	if ws := env.Get(EnvDriveWorkers, kvs.GetWithDefault(DriveWorkers, DefaultKVS)); ws != "" {
    		w, err := strconv.Atoi(ws)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go

    }
    
    // In order to only have Timespec structure, type of Stat_t's fields
    // Atim, Mtim and Ctim is changed from StTimespec to Timespec during
    // ztypes generation.
    // On ppc64, Timespec.Nsec is an int64 while StTimespec.Nsec is an
    // int32, so the fields' value must be modified.
    func fixStatTimFields(stat *Stat_t) {
    	stat.Atim.Nsec >>= 32
    	stat.Mtim.Nsec >>= 32
    	stat.Ctim.Nsec >>= 32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/strconv/doc.go

    // Package strconv implements conversions to and from string representations
    // of basic data types.
    //
    // # Numeric Conversions
    //
    // The most common numeric conversions are [Atoi] (string to int) and [Itoa] (int to string).
    //
    //	i, err := strconv.Atoi("-42")
    //	s := strconv.Itoa(-42)
    //
    // These assume decimal and the Go int type.
    //
    // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. src/syscall/syscall_plan9.go

    			p = i + 1
    			nf++
    		}
    	}
    	f[nf] = buf[p:]
    	nf++
    
    	if nf != len(f) {
    		return NewError("invalid wait message")
    	}
    	w.Pid = int(atoi(f[0]))
    	w.Time[0] = uint32(atoi(f[1]))
    	w.Time[1] = uint32(atoi(f[2]))
    	w.Time[2] = uint32(atoi(f[3]))
    	w.Msg = cstring(f[4])
    	if w.Msg == "''" {
    		// await() returns '' for no error
    		w.Msg = ""
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top