Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 719 for flushF (0.16 sec)

  1. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    func (rb *reorderBuffer) setFlusher(out []byte, f func(*reorderBuffer) bool) {
    	rb.out = out
    	rb.flushF = f
    }
    
    // reset discards all characters from the buffer.
    func (rb *reorderBuffer) reset() {
    	rb.nrune = 0
    	rb.nbyte = 0
    }
    
    func (rb *reorderBuffer) doFlush() bool {
    	if rb.f.composing {
    		rb.compose()
    	}
    	res := rb.flushF(rb)
    	rb.reset()
    	return res
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/unicode/norm/normalize.go

    	ft := formTable[f]
    	n, ok := ft.quickSpan(src, 0, len(b), true)
    	if ok {
    		return b
    	}
    	out := make([]byte, n, len(b))
    	copy(out, b[0:n])
    	rb := reorderBuffer{f: *ft, src: src, nsrc: len(b), out: out, flushF: appendFlush}
    	return doAppendInner(&rb, n)
    }
    
    // String returns f(s).
    func (f Form) String(s string) string {
    	src := inputString(s)
    	ft := formTable[f]
    	n, ok := ft.quickSpan(src, 0, len(s), true)
    	if ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/ThrottlingOutputEventListenerTest.groovy

            10_000 * listener.onOutput(_)
        }
    
        def "background flush does nothing when events already flushed"() {
            def event1 = event('1')
            def event2 = event('2')
            def flush = new FlushOutputEvent()
    
            given:
            renderer.onOutput(event1)
            renderer.onOutput(event2)
            renderer.onOutput(flush)
    
            when:
            executor.runFixedScheduledActionsNow()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. src/net/http/responsecontroller.go

    }
    
    type rwUnwrapper interface {
    	Unwrap() ResponseWriter
    }
    
    // Flush flushes buffered data to the client.
    func (c *ResponseController) Flush() error {
    	rw := c.rw
    	for {
    		switch t := rw.(type) {
    		case interface{ FlushError() error }:
    			return t.FlushError()
    		case Flusher:
    			t.Flush()
    			return nil
    		case rwUnwrapper:
    			rw = t.Unwrap()
    		default:
    			return errNotSupported()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/compress/zlib/writer.go

    	if err != nil {
    		z.err = err
    		return
    	}
    	z.digest.Write(p)
    	return
    }
    
    // Flush flushes the Writer to its underlying io.Writer.
    func (z *Writer) Flush() error {
    	if !z.wroteHeader {
    		z.err = z.writeHeader()
    	}
    	if z.err != nil {
    		return z.err
    	}
    	z.err = z.compressor.Flush()
    	return z.err
    }
    
    // Close closes the Writer, flushing any unwritten data to the underlying
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 18:51:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. src/net/http/httptest/recorder.go

    	if rw.HeaderMap == nil {
    		rw.HeaderMap = make(http.Header)
    	}
    	rw.snapHeader = rw.HeaderMap.Clone()
    }
    
    // Flush implements [http.Flusher]. To test whether Flush was
    // called, see rw.Flushed.
    func (rw *ResponseRecorder) Flush() {
    	if !rw.wroteHeader {
    		rw.WriteHeader(200)
    	}
    	rw.Flushed = true
    }
    
    // Result returns the response generated by the handler.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. src/compress/gzip/gzip.go

    	n, z.err = z.compressor.Write(p)
    	return n, z.err
    }
    
    // Flush flushes any pending compressed data to the underlying writer.
    //
    // It is useful mainly in compressed network protocols, to ensure that
    // a remote reader has enough data to reconstruct a packet. Flush does
    // not return until the data has been written. If the underlying
    // writer returns an error, Flush returns that error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/runtime/mwbbuf.go

    	start := uintptr(unsafe.Pointer(&b.buf[0]))
    	b.next = start
    	if testSmallBuf {
    		// For testing, make the buffer smaller but more than
    		// 1 write barrier's worth, so it tests both the
    		// immediate flush and delayed flush cases.
    		b.end = uintptr(unsafe.Pointer(&b.buf[wbMaxEntriesPerCall+1]))
    	} else {
    		b.end = start + uintptr(len(b.buf))*unsafe.Sizeof(b.buf[0])
    	}
    
    	if (b.end-b.next)%unsafe.Sizeof(b.buf[0]) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/Flushables.java

       *     method
       * @throws IOException if {@code swallowIOException} is false and {@link Flushable#flush} throws
       *     an {@code IOException}.
       * @see Closeables#close
       */
      public static void flush(Flushable flushable, boolean swallowIOException) throws IOException {
        try {
          flushable.flush();
        } catch (IOException e) {
          if (swallowIOException) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  10. pkg/scheduler/metrics/metric_recorder.go

    	bufferCh chan *metric
    	// if bufferSize is reached, incoming metrics will be discarded.
    	bufferSize int
    	// how often the recorder runs to flush the metrics.
    	interval time.Duration
    
    	// stopCh is used to stop the goroutine which periodically flushes metrics.
    	stopCh <-chan struct{}
    	// IsStoppedCh indicates whether the goroutine is stopped. It's used in tests only to make sure
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 16 07:27:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top