Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,003 for write1 (0.13 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/framer/framer.go

    	"io"
    )
    
    type lengthDelimitedFrameWriter struct {
    	w io.Writer
    	h [4]byte
    }
    
    func NewLengthDelimitedFrameWriter(w io.Writer) io.Writer {
    	return &lengthDelimitedFrameWriter{w: w}
    }
    
    // Write writes a single frame to the nested writer, prepending it with the length
    // in bytes of data (as a 4 byte, bigendian uint32).
    func (w *lengthDelimitedFrameWriter) Write(data []byte) (int, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 13:33:12 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/io/ioutil/ioutil.go

    func NopCloser(r io.Reader) io.ReadCloser {
    	return io.NopCloser(r)
    }
    
    // Discard is an io.Writer on which all Write calls succeed
    // without doing anything.
    //
    // Deprecated: As of Go 1.16, this value is simply [io.Discard].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      private var maxFrameSize: Int = INITIAL_MAX_FRAME_SIZE
      private var closed: Boolean = false
      val hpackWriter: Hpack.Writer = Hpack.Writer(out = hpackBuffer)
    
      @Throws(IOException::class)
      fun connectionPreface() {
        this.withLock {
          if (closed) throw IOException("closed")
          if (!client) return // Nothing to write; servers don't send connection headers!
          if (logger.isLoggable(FINE)) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. src/os/file.go

    	return io.Copy(fileWithoutReadFrom{File: f}, r)
    }
    
    // Write writes len(b) bytes from b to the File.
    // It returns the number of bytes written and an error, if any.
    // Write returns a non-nil error when n != len(b).
    func (f *File) Write(b []byte) (n int, err error) {
    	if err := f.checkValid("write"); err != nil {
    		return 0, err
    	}
    	n, e := f.write(b)
    	if n < 0 {
    		n = 0
    	}
    	if n != len(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/JsonModelWriter.kt

                write(buffer.toStringAndRecycle())
            }
        }
    
        private
        fun comma() {
            write(',')
        }
    
        private
        fun documentationLinkFor(section: DocumentationSection) =
            documentationRegistry.documentationLinkFor(section)
    
        private
        fun write(csq: CharSequence) = writer.append(csq)
    
        private
        fun write(c: Char) = writer.append(c)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

            }
            try {
                if (writer != null) {
                    new MavenStaxWriter().write(writer, content);
                } else if (outputStream != null) {
                    new MavenStaxWriter().write(outputStream, content);
                } else {
                    try (OutputStream os = Files.newOutputStream(path)) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    func writeKubeConfigFromSpec(out io.Writer, spec *kubeConfigSpec, clustername string) error {
    
    	// builds the KubeConfig object
    	config, err := buildKubeConfigFromSpec(spec, clustername)
    	if err != nil {
    		return err
    	}
    
    	// writes the kubeconfig to disk if it not exists
    	configBytes, err := clientcmd.Write(*config)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        TF_Int64Tensor:$step,
        TF_StrTensor:$tensor
      );
    
      let results = (outs);
    }
    
    def TF_WriteScalarSummaryOp : TF_Op<"WriteScalarSummary", []> {
      let summary = "Writes a `Summary` protocol buffer with scalar values.";
    
      let description = [{
    The input `tag` and `value` must have the scalars.
    
    writer: A handle to a summary writer.
    step: The step to write the summary for.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/RandomAccessFileOutputStream.java

            this.file = file;
        }
    
        @Override
        public void write(int i) throws IOException {
            file.write(i);
        }
    
        @Override
        public void write(byte[] bytes) throws IOException {
            file.write(bytes);
        }
    
        @Override
        public void write(byte[] bytes, int offset, int length) throws IOException {
            file.write(bytes, offset, length);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/net/nettest/conntest.go

    	checkForTimeoutError(t, err)
    	if _, err := c1.Write(make([]byte, 1024)); err != nil {
    		t.Errorf("unexpected Write error: %v", err)
    	}
    }
    
    // testWriteTimeout tests that Write timeouts do not affect Read.
    func testWriteTimeout(t *testing.T, c1, c2 net.Conn) {
    	go chunkedCopy(c2, rand.New(rand.NewSource(0)))
    
    	c1.SetWriteDeadline(aLongTimeAgo)
    	_, err := c1.Write(make([]byte, 1024))
    	checkForTimeoutError(t, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top