Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 958 for write1 (0.21 sec)

  1. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    	newCert, newkey, err := pkiutil.NewCertAndKey(testCACert, testCAKey, testCertCfg)
    	if err != nil {
    		t.Fatalf("couldn't generate certificate: %v", err)
    	}
    
    	// Writes the new certificate
    	err = pkiReadWriter.Write(newCert, newkey)
    	if err != nil {
    		t.Fatalf("couldn't write new certificate: %v", err)
    	}
    
    	// Reads back the new certificate
    	readCert, err = pkiReadWriter.Read()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/encoding/gob/encode.go

    	fieldnum int                  // the last field number written.
    	buf      [1 + uint64Size]byte // buffer used by the encoder; here to avoid allocation.
    	next     *encoderState        // for free list
    }
    
    // encBuffer is an extremely simple, fast implementation of a write-only byte buffer.
    // It never returns a non-nil error, but Write returns an error value so it matches io.Writer.
    type encBuffer struct {
    	data    []byte
    	scratch [64]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_gen.go

    		return
    	}
    	if (zb0001Mask & 0x1) == 0 { // if not omitted
    		// write "V2Obj"
    		err = en.Append(0xa5, 0x56, 0x32, 0x4f, 0x62, 0x6a)
    		if err != nil {
    			return
    		}
    		if z.ObjectV2 == nil {
    			err = en.WriteNil()
    			if err != nil {
    				return
    			}
    		} else {
    			// map header, size 1
    			// write "DDir"
    			err = en.Append(0x81, 0xa4, 0x44, 0x44, 0x69, 0x72)
    			if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/daemon-protocol/src/test/groovy/org/gradle/configuration/GradleLauncherMetaDataTest.groovy

            System.setProperty("org.gradle.appname", "some-gradle-launcher")
            StringWriter writer = new StringWriter()
            GradleLauncherMetaData metaData = new GradleLauncherMetaData()
    
            when:
            metaData.describeCommand(writer, "[options]", "<task-name>")
    
            then:
            writer.toString() == "some-gradle-launcher [options] <task-name>"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:55:06 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Serializer.java

         */
        T read(Decoder decoder) throws EOFException, Exception;
    
        /**
         * Writes the given object to the given stream. The implementation must not perform any buffering.
         */
        void write(Encoder encoder, T value) throws Exception;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/runtime/traceexp.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    // traceExpWriter is a wrapper around trace writer that produces traceEvExperimentalBatch
    // batches. This means that the data written to the writer need not conform to the standard
    // trace format.
    type traceExpWriter struct {
    	traceWriter
    	exp traceExperiment
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/cmd/test2json/main.go

    			}
    		}
    		c.Exited(err)
    		if err != nil {
    			c.Close()
    			os.Exit(1)
    		}
    	}
    }
    
    type countWriter struct {
    	n int64
    	w io.Writer
    }
    
    func (w *countWriter) Write(b []byte) (int, error) {
    	w.n += int64(len(b))
    	return w.w.Write(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestOutputStore.java

            public void writeAllOutput(long classId, TestOutputEvent.Destination destination, java.io.Writer writer) {
                doRead(classId, 0, true, destination, writer);
            }
    
            public void writeNonTestOutput(long classId, TestOutputEvent.Destination destination, java.io.Writer writer) {
                doRead(classId, 0, false, destination, writer);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FileBackedObjectHolderTest.groovy

            cache.set "a"
    
            then:
            1 * serializer.write(_, "a")
    
            when: // same value is not written
            def r = cache.maybeUpdate { it }
    
            then:
            r == "a"
            1 * serializer.read(_)
    
            and:
            0 * serializer.write(_, _)
    
            when: // different value is written back
            r = cache.maybeUpdate { "b" }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/crypto/tls/conn.go

    	}
    
    	if transcript != nil {
    		transcript.Write(data)
    	}
    
    	return m, nil
    }
    
    var (
    	errShutdown = errors.New("tls: protocol is shutdown")
    )
    
    // Write writes data to the connection.
    //
    // As Write calls [Conn.Handshake], in order to prevent indefinite blocking a deadline
    // must be set for both [Conn.Read] and Write before Write is called when the handshake
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top