Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 4,375 for dwrite (0.14 sec)

  1. src/net/textproto/writer_test.go

    	var buf strings.Builder
    	w := NewWriter(bufio.NewWriter(&buf))
    	d := w.DotWriter()
    	n, err := d.Write([]byte("abc\n.def\n..ghi\n.jkl\n."))
    	if n != 21 || err != nil {
    		t.Fatalf("Write: %d, %s", n, err)
    	}
    	d.Close()
    	want := "abc\r\n..def\r\n...ghi\r\n..jkl\r\n..\r\n.\r\n"
    	if s := buf.String(); s != want {
    		t.Fatalf("wrote %q", s)
    	}
    }
    
    func TestDotWriterCloseEmptyWrite(t *testing.T) {
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 13:55:46 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/IoActions.java

     */
    public abstract class IoActions {
    
        /**
         * Gives a writer for the given file/encoding to the given write action, managing the streams.
         *
         * @param output The file to write to
         * @param encoding The character encoding to write with
         * @param action The action to write the actual content
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. test/fixedbugs/issue25516.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Make sure dead write barriers are handled correctly.
    
    package main
    
    func f(p **int) {
    	// The trick here is to eliminate the block containing the write barrier,
    	// but only after the write barrier branches are inserted.
    	// This requires some delicate code.
    	i := 0
    	var b []bool
    	var s string
    	for true {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 29 17:45:36 UTC 2018
    - 558 bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/RecordingObjectOutputStream.kt

        override fun writeObjectOverride(obj: Any?) = record {
            write(obj)
        }
    
        override fun write(`val`: Int) = record {
            outputStream.write(`val`)
        }
    
        override fun write(buf: ByteArray) = record {
            outputStream.write(buf)
        }
    
        override fun write(buf: ByteArray, off: Int, len: Int) = record {
            outputStream.write(buf, off, len)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/metrics.cc

    // across "api_label" is not expected to equal the ".../write/count" cell value
    // because programs can invoke more than one API to save a single SM and
    // because the API may error out before successfully writing a SM.
    auto* saved_model_write_api = monitoring::Counter<1>::New(
        "/tensorflow/core/saved_model/write/api",
        "The API used to write the SavedModel.", "api_label");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. src/syscall/syscall_freebsd.go

    //sys	Open(path string, mode int, perm uint32) (fd int, err error)
    //sys	Pathconf(path string, name int) (val int, err error)
    //sys	pread(fd int, p []byte, offset int64) (n int, err error)
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error)
    //sys	read(fd int, p []byte) (n int, err error)
    //sys	Readlink(path string, buf []byte) (n int, err error)
    //sys	Rename(from string, to string) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/IsolatedCodecs.kt

            write(value.value)
        }
    
        override suspend fun ReadContext.decode(): IsolatedEnumValueSnapshot {
            val value = read() as Enum<*>
            return IsolatedEnumValueSnapshot(value)
        }
    }
    
    
    object IsolatedSetCodec : Codec<IsolatedSet> {
        override suspend fun WriteContext.encode(value: IsolatedSet) {
            write(value.elements)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/java/incrementalAnnotationProcessing/groovy/processor/src/main/java/org/gradle/ServiceRegistryProcessor.java

        private void addServiceCreationMethod(Writer writer, TypeElement service) throws IOException {
            Name qualifiedName = service.getQualifiedName();
            Name simpleName = service.getSimpleName();
            writer.write("  public " + qualifiedName + " create" + simpleName + "() {");
            writer.write("      return new " + service.getQualifiedName() + "();");
            writer.write("  }");
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. test/nowritebarrier.go

    //go:noinline
    func d3() {
    	x.f = y // ERROR "write barrier prohibited by caller"
    	d4()
    }
    
    //go:yeswritebarrierrec
    func d4() {
    	d2()
    }
    
    //go:noinline
    func systemstack(func()) {}
    
    //go:nowritebarrierrec
    func e1() {
    	systemstack(e2)
    	systemstack(func() {
    		x.f = y // ERROR "write barrier prohibited by caller"
    	})
    }
    
    func e2() {
    	x.f = y // ERROR "write barrier prohibited by caller"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:21 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn_test.go

    	}
    
    	// verify that a read from a Write channel doesn't block
    	data = make([]byte, 1024)
    	if n, err := conn.channels[4].Read(data); n != 0 || err != io.EOF {
    		t.Errorf("reads should be ignored")
    	}
    
    	// verify that a client write to a Write channel doesn't block (is dropped)
    	if n, err := client.Write(append([]byte{4}, []byte("ignored")...)); err != nil || n != 8 {
    		t.Fatalf("%d: %v", n, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 11.4K bytes
    - Viewed (0)
Back to top