Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,529 for dwrite (0.34 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/DefaultBinaryStoreTest.groovy

        def "stores binary data"() {
            def store = new DefaultBinaryStore(temp.file("foo.bin"))
    
            when:
            store.write({ it.writeInt(10) } as BinaryStore.WriteAction)
            store.write({ it.writeString("x") } as BinaryStore.WriteAction)
            def data1 = store.done()
            store.write({ it.writeString("y") } as BinaryStore.WriteAction)
            def data2 = store.done()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/cluster_cache.go

    	h := hash.New()
    	h.WriteString(t.clusterName)
    	h.Write(Separator)
    	h.WriteString(t.proxyVersion)
    	h.Write(Separator)
    	h.WriteString(util.LocalityToString(t.locality))
    	h.Write(Separator)
    	h.WriteString(t.proxyClusterID)
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(t.proxySidecar))
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(t.http2))
    	h.Write(Separator)
    	h.WriteString(strconv.FormatBool(t.downstreamAuto))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/util/PropertiesUtilsTest.groovy

            expect:
            write([:]) == ""
        }
    
        def "empty properties with comment are written properly"() {
            expect:
            write([:], "Line comment") == normalize("""
                #Line comment
                """)
        }
    
        def "simple properties are written sorted alphabetically"() {
            expect:
            write([one: "1", two: "2", three: "three"], "Line comment") == normalize("""
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. pkg/util/hash/hash.go

    func (i *instance) Write(p []byte) (n int) {
    	n, _ = i.hash.Write(p)
    	return
    }
    
    // Write wraps the Hash.Write function call
    // Hash.Write error always return nil, this func simplify caller handle error
    func (i *instance) WriteString(s string) (n int) {
    	n, _ = i.hash.WriteString(s)
    	return
    }
    
    func (i *instance) Sum64() uint64 {
    	return i.hash.Sum64()
    }
    
    func (i *instance) Sum() string {
    	sum := i.hash.Sum(nil)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/outputorigin/IncrementalBuildOutputOriginIntegrationTest.groovy

            firstBuildCacheKey != null
            originBuildInvocationId(":write") == null
    
            when:
            succeeds "write"
    
            then:
            executed ":write"
            def secondBuildId = buildInvocationId
            firstBuildId != secondBuildId
            with(origin(":write")) {
                buildInvocationId == firstBuildId
                buildCacheKey == firstBuildCacheKey
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 08:27:17 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flushwriter/writer_test.go

    	fw := Wrap(w)
    	for i := 0; i < 10; i++ {
    		_, err := fw.Write([]byte("Test write"))
    		if err != nil {
    			t.Errorf("Unexpected error while writing with flush writer: %v", err)
    		}
    	}
    	if w.flushCount != 10 {
    		t.Errorf("Flush not called the expected number of times. Actual: %d", w.flushCount)
    	}
    	if w.writeCount != 10 {
    		t.Errorf("Write not called the expected number of times. Actual: %d", w.writeCount)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 16:09:42 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  7. src/archive/tar/fuzz_test.go

    		for _, f := range files {
    			if err := w.WriteHeader(f.header); err != nil {
    				t.Fatalf("unable to write previously parsed header: %s", err)
    			}
    			if _, err := w.Write(f.content); err != nil {
    				t.Fatalf("unable to write previously parsed content: %s", err)
    			}
    		}
    		if err := w.Close(); err != nil {
    			t.Fatalf("Unable to write archive: %s", err)
    		}
    
    		// TODO: We may want to check if the archive roundtrips. This would require
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 18:06:33 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. src/encoding/pem/pem.go

    	n, err = l.out.Write(b[0:excess])
    	if err != nil {
    		return
    	}
    
    	n, err = l.out.Write(nl)
    	if err != nil {
    		return
    	}
    
    	return l.Write(b[excess:])
    }
    
    func (l *lineBreaker) Close() (err error) {
    	if l.used > 0 {
    		_, err = l.out.Write(l.line[0:l.used])
    		if err != nil {
    			return
    		}
    		_, err = l.out.Write(nl)
    	}
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/ReferenceEntry.java

      /*
       * Implemented by entries that use write order. Write entries are maintained in a doubly-linked
       * list. New entries are added at the tail of the list at write time and stale entries are
       * expired from the head of the list.
       */
    
      @SuppressWarnings("GoodTime")
      /** Returns the time that this entry was last written, in ns. */
      long getWriteTime();
    
      /** Sets the entry write time in ns. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/text/unicode/norm/readwriter.go

    	if len(w.buf) > 0 {
    		_, err := w.w.Write(w.buf)
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // Writer returns a new writer that implements Write(b)
    // by writing f(b) to w. The returned writer may use an
    // internal buffer to maintain state across Write calls.
    // Calling its Close method writes any buffered data to w.
    func (f Form) Writer(w io.Writer) io.WriteCloser {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 2.9K bytes
    - Viewed (0)
Back to top