Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 436 for setString (0.18 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/AbstractWritableResultsStore.groovy

                            String testClass = experimentTimes.getString(++resultIdx)
                            String testName = experimentTimes.getString(++resultIdx)
                            String testProject = experimentTimes.getString(++resultIdx)
                            OperatingSystem os = OperatingSystem.valueOf(experimentTimes.getString(++resultIdx))
                            long avgDuration = experimentTimes.getLong(++resultIdx)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/crypto/x509/oid.go

    	}
    	secondNum, oid, nextComponentExists = strings.Cut(oid, ".")
    
    	var (
    		first  = big.NewInt(0)
    		second = big.NewInt(0)
    	)
    
    	if _, ok := first.SetString(firstNum, 10); !ok {
    		return errInvalidOID
    	}
    	if _, ok := second.SetString(secondNum, 10); !ok {
    		return errInvalidOID
    	}
    
    	if first.Cmp(big.NewInt(2)) > 0 || (first.Cmp(big.NewInt(2)) < 0 && second.Cmp(big.NewInt(40)) >= 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. src/math/big/doc.go

    numeric values, and vice versa: *[Int], *[Rat], and *[Float] values implement
    the Stringer interface for a (default) string representation of the value,
    but also provide SetString methods to initialize a value from a string in
    a variety of supported formats (see the respective SetString documentation).
    
    Finally, *[Int], *[Rat], and *[Float] satisfy [fmt.Scanner] for scanning
    and (except for *[Rat]) the Formatter interface for formatted printing.
    */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/unicode/norm/input.go

    	return input{bytes: str}
    }
    
    func inputString(str string) input {
    	return input{str: str}
    }
    
    func (in *input) setBytes(str []byte) {
    	in.str = ""
    	in.bytes = str
    }
    
    func (in *input) setString(str string) {
    	in.str = str
    	in.bytes = nil
    }
    
    func (in *input) _byte(p int) byte {
    	if in.bytes == nil {
    		return in.str[p]
    	}
    	return in.bytes[p]
    }
    
    func (in *input) skipASCII(p, max int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/math/big/ratmarsh.go

    	return x.marshal(), nil
    }
    
    // UnmarshalText implements the [encoding.TextUnmarshaler] interface.
    func (z *Rat) UnmarshalText(text []byte) error {
    	// TODO(gri): get rid of the []byte/string conversion
    	if _, ok := z.SetString(string(text)); !ok {
    		return fmt.Errorf("math/big: cannot unmarshal %q into a *big.Rat", text)
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/certificates.go

    			for i, ca := range secret.CertChain {
    				t := "Intermediate"
    				if i == 0 {
    					t = "Leaf"
    				} else if i == len(secret.CertChain)-1 {
    					t = "Root"
    				}
    				n := new(big.Int)
    				n, _ = n.SetString(ca.SerialNumber, 10)
    				fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%x\t%v\t%v\n",
    					secret.Identity, t, secret.State, certNotExpired(ca), n, valueOrNA(ca.ExpirationTime), valueOrNA(ca.ValidFrom))
    			}
    		}
    	}
    	return w.Flush()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 16:38:16 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/math/big/floatconv.go

    )
    
    var floatZero Float
    
    // SetString sets z to the value of s and returns z and a boolean indicating
    // success. s must be a floating-point number of the same format as accepted
    // by [Float.Parse], with base argument 0. The entire string (not just a prefix) must
    // be valid for success. If the operation failed, the value of z is undefined
    // but the returned value is nil.
    func (z *Float) SetString(s string) (*Float, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/scalar_test.go

    	} else if out != nil {
    		t.Errorf("SetCanonicalBytes did not return nil with an error")
    	}
    }
    
    func TestScalarSetUniformBytes(t *testing.T) {
    	mod, _ := new(big.Int).SetString("27742317777372353535851937790883648493", 10)
    	mod.Add(mod, new(big.Int).Lsh(big.NewInt(1), 252))
    	f := func(in [64]byte, sc Scalar) bool {
    		sc.SetUniformBytes(in[:])
    		repr := sc.Bytes()
    		if !isReduced(repr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. src/crypto/rsa/pss_test.go

    		t.Fatal(err)
    	}
    	err = VerifyPSS(&key.PublicKey, crypto.SHA256, digest[:], signature, nil)
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func bigFromHex(hex string) *big.Int {
    	n, ok := new(big.Int).SetString(hex, 16)
    	if !ok {
    		panic("bad hex: " + hex)
    	}
    	return n
    }
    
    func intFromHex(hex string) int {
    	i, err := strconv.ParseInt(hex, 16, 32)
    	if err != nil {
    		panic(err)
    	}
    	return int(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        writer.close();
    
        assertTrue(sink.wasStreamClosed());
        assertEquals(STRING, sink.getString());
      }
    
      public void testWrite_string() throws IOException {
        assertEquals("", sink.getString());
        sink.write(STRING);
    
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
        assertEquals(STRING, sink.getString());
      }
    
      public void testWriteFrom_reader() throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top