Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 639 for write1 (0.48 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. 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)
  5. 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)
  6. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    		writeKubeConfigFunction func(out io.Writer) error
    	}{
    		{
    			name: "WriteKubeConfigWithClientCert",
    			writeKubeConfigFunction: func(out io.Writer) error {
    				return WriteKubeConfigWithClientCert(out, cfg, "myUser", []string{"myOrg"}, notAfter)
    			},
    		},
    		{
    			name: "WriteKubeConfigWithToken",
    			writeKubeConfigFunction: func(out io.Writer) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/compile/internal/types2/typestring.go

    	qf           Qualifier
    	ctxt         *Context       // if non-nil, we are type hashing
    	tparams      *TypeParamList // local type parameters
    	paramNames   bool           // if set, write function parameter names, otherwise, write types only
    	tpSubscripts bool           // if set, write type parameter indices as subscripts
    	pkgInfo      bool           // package-annotate first unexported-type field to avoid confusing type description
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/testing/internal/testdeps/deps.go

    			return
    		}
    	}
    	return matchRe.MatchString(str), nil
    }
    
    func (TestDeps) StartCPUProfile(w io.Writer) error {
    	return pprof.StartCPUProfile(w)
    }
    
    func (TestDeps) StopCPUProfile() {
    	pprof.StopCPUProfile()
    }
    
    func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
    	return pprof.Lookup(name).WriteTo(w, debug)
    }
    
    // ImportPath is the import path of the testing binary, set by the generated main function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    		}
    	}
    }
    
    // testNonEmptyWriter wraps an io.Writer and ensures that
    // Write is never called with an empty buffer.
    type testNonEmptyWriter struct{ io.Writer }
    
    func (w testNonEmptyWriter) Write(b []byte) (int, error) {
    	if len(b) == 0 {
    		return 0, errors.New("unexpected empty Write call")
    	}
    	return w.Writer.Write(b)
    }
    
    func TestFileWriter(t *testing.T) {
    	type (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
Back to top