Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 295 for copied32 (0.29 sec)

  1. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(I18N.length(), copied);
      }
    
      public void testCopy_toWriter_fromReader() throws IOException {
        StringWriter writer = new StringWriter();
        long copied = CharStreams.copy(new StringReader(ASCII), writer);
        assertEquals(ASCII, writer.toString());
        assertEquals(ASCII.length(), copied);
    
        StringWriter writer2 = new StringWriter();
        copied = CharStreams.copy(new StringReader(I18N), writer2);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharStreamsTest.java

        assertEquals(I18N.length(), copied);
      }
    
      public void testCopy_toWriter_fromReader() throws IOException {
        StringWriter writer = new StringWriter();
        long copied = CharStreams.copy(new StringReader(ASCII), writer);
        assertEquals(ASCII, writer.toString());
        assertEquals(ASCII.length(), copied);
    
        StringWriter writer2 = new StringWriter();
        copied = CharStreams.copy(new StringReader(I18N), writer2);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/subst.go

    }
    
    func (subst *subster) tuple(t *Tuple) *Tuple {
    	if t != nil {
    		if vars, copied := subst.varList(t.vars); copied {
    			return &Tuple{vars: vars}
    		}
    	}
    	return t
    }
    
    func (subst *subster) varList(in []*Var) (out []*Var, copied bool) {
    	out = in
    	for i, v := range in {
    		if w := subst.var_(v); w != v {
    			if !copied {
    				// first variable that got substituted => allocate new out slice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/go/types/subst.go

    }
    
    func (subst *subster) tuple(t *Tuple) *Tuple {
    	if t != nil {
    		if vars, copied := subst.varList(t.vars); copied {
    			return &Tuple{vars: vars}
    		}
    	}
    	return t
    }
    
    func (subst *subster) varList(in []*Var) (out []*Var, copied bool) {
    	out = in
    	for i, v := range in {
    		if w := subst.var_(v); w != v {
    			if !copied {
    				// first variable that got substituted => allocate new out slice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/DefaultDomainObjectCollection.java

            // is empty.
            Collection<T> copied = null;
            for (T t : this) {
                if (copied == null) {
                    copied = Lists.newArrayListWithExpectedSize(estimatedSize());
                }
                copied.add(t);
            }
            if (copied != null) {
                for (T t : copied) {
                    decoratedAction.execute(t);
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/types.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package atomic
    
    import "unsafe"
    
    // Int32 is an atomically accessed int32 value.
    //
    // An Int32 must not be copied.
    type Int32 struct {
    	noCopy noCopy
    	value  int32
    }
    
    // Load accesses and returns the value atomically.
    //
    //go:nosplit
    func (i *Int32) Load() int32 {
    	return Loadint32(&i.value)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. src/net/sendfile_test.go

    		// in expectSendfile.
    		_, err = io.CopyN(conn, r, 1)
    		if err != nil {
    			t.Error(err)
    			return
    		}
    		// Signal the main goroutine that we've copied the byte.
    		close(copied)
    	}()
    
    	wg.Add(1)
    	go func() {
    		// Write 1 byte to the write end of the pipe.
    		defer wg.Done()
    		_, err := w.Write([]byte{'a'})
    		if err != nil {
    			t.Error(err)
    		}
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. pkg/dns/client/dns.go

    	// So lookup the cname table first
    	for _, cn := range table.cname[hostname] {
    		// this was a cname match
    		copied := dns.Copy(cn).(*dns.CNAME)
    		copied.Header().Name = question
    		cnAnswers = append(cnAnswers, copied)
    		hostname = copied.Target
    	}
    
    	switch qtype {
    	case dns.TypeA:
    		ipAnswers = table.name4[hostname]
    	case dns.TypeAAAA:
    		ipAnswers = table.name6[hostname]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/Quantiles.java

         * @param dataset the dataset to do the calculation on, which must be non-empty, which will be
         *     cast to doubles (with any associated lost of precision), and which will not be mutated by
         *     this call (it is copied instead)
         * @return the quantile value
         */
        public double compute(Collection<? extends Number> dataset) {
          return computeInPlace(Doubles.toArray(dataset));
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/CharStreams.java

       * close or flush either object.
       *
       * @param from the object to read from
       * @param to the object to write to
       * @return the number of characters copied
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue
      public static long copy(Readable from, Appendable to) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top