Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 299 for writeLoc (0.19 sec)

  1. pkg/bootstrap/instance.go

    var overrideVar = env.Register("ISTIO_BOOTSTRAP", "", "")
    
    // Instance of a configured Envoy bootstrap writer.
    type Instance interface {
    	// WriteTo writes the content of the Envoy bootstrap to the given writer.
    	WriteTo(templateFile string, w io.Writer) error
    
    	// CreateFile generates an Envoy bootstrap file.
    	CreateFile() (string, error)
    }
    
    // New creates a new Instance of an Envoy bootstrap writer.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/net/packetconn_test.go

    			t.Fatal(err)
    		}
    		defer closer(c2, tt.net, tt.addr1, tt.addr2)
    		c2.LocalAddr()
    		rb2 := make([]byte, 128)
    
    		if _, err := c1.WriteTo(wb, c2.LocalAddr()); err != nil {
    			t.Fatal(err)
    		}
    		if _, _, err := c2.ReadFrom(rb2); err != nil {
    			t.Fatal(err)
    		}
    		if _, err := c2.WriteTo(wb, c1.LocalAddr()); err != nil {
    			t.Fatal(err)
    		}
    		rb1 := make([]byte, 128)
    		if _, _, err := c1.ReadFrom(rb1); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. src/net/net.go

    // hide the WriteTo method of that other type.
    type noWriteTo struct{}
    
    // WriteTo hides another WriteTo method.
    // It should never be called.
    func (noWriteTo) WriteTo(io.Writer) (int64, error) {
    	panic("can't happen")
    }
    
    // tcpConnWithoutWriteTo implements all the methods of *TCPConn other
    // than WriteTo. This is used to permit WriteTo to call io.Copy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. src/cmd/internal/pgo/serialize_test.go

    	}
    
    	return nil
    }
    
    func testRoundTrip(t *testing.T, d *Profile) []byte {
    	var buf bytes.Buffer
    	n, err := d.WriteTo(&buf)
    	if err != nil {
    		t.Fatalf("WriteTo got err %v want nil", err)
    	}
    	if n != int64(buf.Len()) {
    		t.Errorf("WriteTo got n %d want %d", n, int64(buf.Len()))
    	}
    
    	b := buf.Bytes()
    
    	got, err := FromSerialized(&buf)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/strings/reader.go

    	}
    	r.i = abs
    	return abs, nil
    }
    
    // WriteTo implements the [io.WriterTo] interface.
    func (r *Reader) WriteTo(w io.Writer) (n int64, err error) {
    	r.prevRune = -1
    	if r.i >= int64(len(r.s)) {
    		return 0, nil
    	}
    	s := r.s[r.i:]
    	m, err := io.WriteString(w, s)
    	if m > len(s) {
    		panic("strings.Reader.WriteTo: invalid WriteString count")
    	}
    	r.i += int64(m)
    	n = int64(m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:10:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt

      }
    
      @Throws(IOException::class)
      override fun contentLength(): Long {
        return delegate.contentLength()
      }
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
        delegate.writeTo(sink)
      }
    
      override fun isDuplex(): Boolean {
        return delegate.isDuplex()
      }
    
      override fun toString(): String {
        return javaClass.simpleName + "(" + delegate.toString() + ")"
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. internal/dsync/dsync-server_test.go

    		subrouter.Methods(http.MethodPost).Path("/v1/force-unlock").HandlerFunc(lockServer.ForceUnlockHandler)
    
    		nodes[i] = httptest.NewServer(router)
    	}
    }
    
    const WriteLock = -1
    
    type lockServer struct {
    	mutex sync.Mutex
    	// Map of locks, with negative value indicating (exclusive) write lock
    	// and positive values indicating number of read locks
    	lockMap map[string]int64
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 23 16:46:37 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-RequestBodyCommon.kt

      return object : RequestBody() {
        override fun contentType() = contentType
    
        override fun contentLength() = byteCount.toLong()
    
        override fun writeTo(sink: BufferedSink) {
          sink.write(this@commonToRequestBody, offset, byteCount)
        }
      }
    }
    
    @Suppress("unused")
    fun RequestBody.commonContentLength(): Long = -1L
    
    @Suppress("unused")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiExecutor.java

     */
    
    package org.gradle.internal.logging.console;
    
    import org.gradle.api.Action;
    
    public interface AnsiExecutor {
        void write(Action<? super AnsiContext> action);
        void writeAt(Cursor writePos, Action<? super AnsiContext> action);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 851 bytes
    - Viewed (0)
  10. src/net/udpsock_test.go

    	}
    
    	allocs = testing.AllocsPerRun(1000, func() {
    		_, err := conn.WriteTo(buf, addr)
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, _, err = conn.ReadFromUDP(buf)
    		if err != nil {
    			t.Fatal(err)
    		}
    	})
    	if got := int(allocs); got != 1 {
    		t.Errorf("WriteTo/ReadFromUDP allocated %d objects", got)
    	}
    }
    
    func BenchmarkReadWriteMsgUDPAddrPort(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
Back to top