Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 189 for buffer_end (0.32 sec)

  1. cmd/xl-storage-disk-id-check.go

    	}
    	return n, err
    }
    
    // diskHealthReader provides a wrapper that will update disk health on
    // ctx, on every successful read.
    // This should only be used directly at the os/syscall level,
    // otherwise buffered operations may return false health checks.
    func diskHealthReader(ctx context.Context, r io.Reader) io.Reader {
    	// Check if context has a disk health check.
    	tracker, ok := ctx.Value(healthDiskCtxKey{}).(*healthDiskCtxValue)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. src/cmd/gofmt/gofmt.go

    // output in a deterministic order.
    type sequencer struct {
    	maxWeight int64
    	sem       *semaphore.Weighted   // weighted by input bytes (an approximate proxy for memory overhead)
    	prev      <-chan *reporterState // 1-buffered
    }
    
    // newSequencer returns a sequencer that allows concurrent tasks up to maxWeight
    // and writes tasks' output to out and err.
    func newSequencer(maxWeight int64, out, err io.Writer) *sequencer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. src/image/jpeg/writer.go

    // theHuffmanLUT are compiled representations of theHuffmanSpec.
    var theHuffmanLUT [4]huffmanLUT
    
    func init() {
    	for i, s := range theHuffmanSpec {
    		theHuffmanLUT[i].init(s)
    	}
    }
    
    // writer is a buffered writer.
    type writer interface {
    	Flush() error
    	io.Writer
    	io.ByteWriter
    }
    
    // encoder encodes an image to the JPEG format.
    type encoder struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        )
        val call1 = client.newCall(Request(server.url("/")))
        val response1 = call1.execute()
        waitForDataFrames(Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE)
    
        // Cancel the call and discard what we've buffered for the response body. This should free up
        // the connection flow-control window so new requests can proceed.
        call1.cancel()
        assertThat(
          response1.body.source().discard(1, TimeUnit.SECONDS),
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  5. internal/ringbuffer/ring_buffer.go

    	ErrWriteOnClosed = errors.New("write on closed ringbuffer")
    )
    
    // RingBuffer is a circular buffer that implement io.ReaderWriter interface.
    // It operates like a buffered pipe, where data written to a RingBuffer
    // and can be read back from another goroutine.
    // It is safe to concurrently read and write RingBuffer.
    type RingBuffer struct {
    	buf       []byte
    	size      int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/audit.go

    	"k8s.io/apiserver/pkg/audit/policy"
    	"k8s.io/apiserver/pkg/server"
    	"k8s.io/apiserver/pkg/server/egressselector"
    	"k8s.io/apiserver/pkg/util/webhook"
    	pluginbuffered "k8s.io/apiserver/plugin/pkg/audit/buffered"
    	pluginlog "k8s.io/apiserver/plugin/pkg/audit/log"
    	plugintruncate "k8s.io/apiserver/plugin/pkg/audit/truncate"
    	pluginwebhook "k8s.io/apiserver/plugin/pkg/audit/webhook"
    )
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 24 06:30:04 UTC 2022
    - 20.3K bytes
    - Viewed (0)
  7. src/net/http/transport.go

    	br *bufio.Reader // used until empty
    	io.ReadWriteCloser
    }
    
    func (b *readWriteCloserBody) Read(p []byte) (n int, err error) {
    	if b.br != nil {
    		if n := b.br.Buffered(); len(p) > n {
    			p = p[:n]
    		}
    		n, err = b.br.Read(p)
    		if b.br.Buffered() == 0 {
    			b.br = nil
    		}
    		return n, err
    	}
    	return b.ReadWriteCloser.Read(p)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/preflight/checks.go

    func (sysver SystemVerificationCheck) Check() (warnings, errorList []error) {
    	klog.V(1).Infoln("running all checks")
    	// Create a buffered writer and choose a quite large value (1M) and suppose the output from the system verification test won't exceed the limit
    	// Run the system verification check, but write to out buffered writer instead of stdout
    	bufw := bufio.NewWriterSize(os.Stdout, 1*1024*1024)
    	reporter := &system.StreamReporter{WriteStream: bufw}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

    			return
    		}
    		if event == nil {
    			break
    		}
    		c.sendWatchCacheEvent(event)
    
    		// With some events already sent, update resourceVersion so that
    		// events that were buffered and not yet processed won't be delivered
    		// to this watcher second time causing going back in time.
    		//
    		// There is one case where events are not necessary ordered by
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 12:22:41 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

       *  * Both input and output streams have transmitted all data and headers.
       *
       * Note that the input stream may continue to yield data even after a stream reports itself as
       * not open. This is because input data is buffered.
       */
      val isOpen: Boolean
        get() {
          this.withLock {
            if (errorCode != null) {
              return false
            }
            if ((source.finished || source.closed) &&
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top