Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 4,308 for gwrite (0.12 sec)

  1. internal/crypto/key.go

    		mac := hmac.New(sha256.New, extKey)
    		mac.Write(sealedKey.IV[:])
    		mac.Write([]byte(domain))
    		mac.Write([]byte(SealAlgorithm))
    		mac.Write([]byte(path.Join(bucket, object))) // use path.Join for canonical 'bucket/object'
    		unsealConfig = sio.Config{MinVersion: sio.Version20, Key: mac.Sum(nil), CipherSuites: fips.DARECiphers()}
    	case InsecureSealAlgorithm:
    		sha := sha256.New()
    		sha.Write(extKey)
    		sha.Write(sealedKey.IV[:])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 19 20:28:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/TestCharSink.java

        return byteSink.wasStreamClosed();
      }
    
      @Override
      public Writer openStream() throws IOException {
        // using TestByteSink's output stream to get option behavior, so flush to it on every write
        return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) {
          @Override
          public void write(int c) throws IOException {
            super.write(c);
            flush();
          }
    
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLoadingIntegrationTest.java

            testFile("settings.gradle").write("   \n  ");
            testFile("build.gradle").write("   ");
            inTestDirectory().withTasks("help").run();
        }
    
        @Test
        public void canDetermineRootProjectAndDefaultProjectBasedOnCurrentDirectory() {
            File rootDir = getTestDirectory();
            File childDir = new File(rootDir, "child");
    
            testFile("settings.gradle").write("include('child')");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18K bytes
    - Viewed (0)
  6. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy

            given:
            def streamBuf = new StreamByteBuffer(32000)
            def output = streamBuf.getOutputStream()
    
            when:
            output.write(1)
            output.write(2)
            output.write(3)
            output.write(255)
            output.close()
    
            then:
            def input = streamBuf.getInputStream()
            input.read() == 1
            input.read() == 2
            input.read() == 3
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 13:06:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top