Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 4,375 for dwrite (0.1 sec)

  1. samples/health-check/server.go

    func foo8001(w http.ResponseWriter, _ *http.Request) {
    	w.Write([]byte("Listening on 8001: foo "))
    }
    
    func bar8001(w http.ResponseWriter, _ *http.Request) {
    	w.Write([]byte("Listening on 8001: bar "))
    }
    
    func foo8002(w http.ResponseWriter, _ *http.Request) {
    	w.Write([]byte("Listening on 8002: foo "))
    }
    
    func bar8002(w http.ResponseWriter, _ *http.Request) {
    	w.Write([]byte("Listening on 8002: bar "))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil.go

    // executes at least one write operation if it is closed.
    //
    // This can be useful within the context of HTTP. At least
    // one write operation must happen to send the HTTP headers
    // to the peer.
    type WriteOnCloser struct {
    	io.Writer
    	hasWritten bool
    }
    
    func (w *WriteOnCloser) Write(p []byte) (int, error) {
    	w.hasWritten = true
    	return w.Writer.Write(p)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. tests/fuzz/pki_fuzzer.go

    	if err != nil {
    		return 0
    	}
    	_, err = certFile.Write(certFileBytes)
    	if err != nil {
    		return 0
    	}
    
    	privKeyFile, err := os.Create("privKeyFile")
    	if err != nil {
    		return 0
    	}
    	defer privKeyFile.Close()
    	defer os.Remove("privKeyFile")
    
    	privKeyFileBytes, err := f.GetBytes()
    	if err != nil {
    		return 0
    	}
    	_, err = privKeyFile.Write(privKeyFileBytes)
    	if err != nil {
    		return 0
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:25 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. test/fixedbugs/issue4590.dir/pkg1.go

    // license that can be found in the LICENSE file.
    
    package pkg1
    
    type A interface {
    	Write() error
    }
    
    type B interface {
    	Hello()
    	world()
    }
    
    type C struct{}
    
    func (c C) Write() error { return nil }
    
    var T = struct{ A }{nil}
    var U = struct{ B }{nil}
    var V A = struct{ *C }{nil}
    var W = interface {
    	Write() error
    	Hello()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 438 bytes
    - Viewed (0)
  5. src/internal/coverage/stringtab/stringtab.go

    		rval += uint32(len(stw.tmp)) + uint32(slen)
    	}
    	return rval
    }
    
    // Write writes the string table in serialized form to the specified
    // io.Writer.
    func (stw *Writer) Write(w io.Writer) error {
    	wr128 := func(v uint) error {
    		stw.tmp = stw.tmp[:0]
    		stw.tmp = uleb128.AppendUleb128(stw.tmp, v)
    		if nw, err := w.Write(stw.tmp); err != nil {
    			return fmt.Errorf("writing string table: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Verify the peer's settings were read and applied.
        assertThat(connection.peerSettings.headerTableSize).isEqualTo(0)
        val writer = connection.writer
        assertThat(writer.hpackWriter.dynamicTableByteCount).isEqualTo(0)
        assertThat(writer.hpackWriter.headerTableSizeSetting).isEqualTo(0)
      }
    
      @Test fun peerHttp2ClientDisablesPush() {
        val client = false // Peer is client, so we are server.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go

    	conn *Conn
    	num  byte
    	r    io.Reader
    	w    io.WriteCloser
    
    	read, write bool
    }
    
    // newWebsocketChannel creates a pipe for writing to a websocket. Do not write to this pipe
    // prior to the connection being opened. It may be no, half, or full duplex depending on
    // read and write.
    func newWebsocketChannel(conn *Conn, num byte, read, write bool) *websocketChannel {
    	r, w := io.Pipe()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/DummyBinaryStore.groovy

    class DummyBinaryStore implements BinaryStore {
    
        private final ByteArrayOutputStream bytes = new ByteArrayOutputStream()
        private Encoder output = new OutputStreamBackedEncoder(bytes)
    
        void write(WriteAction write) {
            write.write(output)
        }
    
        BinaryData done() {
            new BinaryData() {
                Decoder decoder
                def <T> T read(ReadAction<T> readAction) {
                    if (decoder == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/ReferenceEntry.java

      /*
       * Implemented by entries that use write order. Write entries are maintained in a doubly-linked
       * list. New entries are added at the tail of the list at write time and stale entries are
       * expired from the head of the list.
       */
    
      @SuppressWarnings("GoodTime")
      /** Returns the time that this entry was last written, in ns. */
      long getWriteTime();
    
      /** Sets the entry write time in ns. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/unicode/norm/readwriter.go

    	if len(w.buf) > 0 {
    		_, err := w.w.Write(w.buf)
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // Writer returns a new writer that implements Write(b)
    // by writing f(b) to w. The returned writer may use an
    // internal buffer to maintain state across Write calls.
    // Calling its Close method writes any buffered data to w.
    func (f Form) Writer(w io.Writer) io.WriteCloser {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top