Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 593 for flushF (0.2 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/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)
  6. 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)
  7. 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)
  8. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

        Writer writer = new AppendableWriter(spy);
    
        writer.write("Hello");
        assertFalse(spy.flushed);
        assertFalse(spy.closed);
    
        writer.flush();
        assertTrue(spy.flushed);
        assertFalse(spy.closed);
    
        writer.close();
        assertTrue(spy.flushed);
        assertTrue(spy.closed);
      }
    
      public void testCloseIsFinal() throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. cmd/listen-notification-handlers.go

    			if err != nil {
    				return
    			}
    			if len(mergeCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    			grid.PutByteBuffer(ev)
    		case <-emptyEventTicker:
    			if err := enc.Encode(struct{ Records []event.Event }{}); err != nil {
    				return
    			}
    			w.(http.Flusher).Flush()
    		case <-keepAliveTicker:
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/runtime/mcache.go

    	}
    	// Clear tinyalloc pool.
    	c.tiny = 0
    	c.tinyoffset = 0
    
    	// Flush tinyAllocs.
    	stats := memstats.heapStats.acquire()
    	atomic.Xadd64(&stats.tinyAllocCount, int64(c.tinyAllocs))
    	c.tinyAllocs = 0
    	memstats.heapStats.release()
    
    	// Update heapLive and heapScan.
    	gcController.update(dHeapLive, scanAlloc)
    }
    
    // prepareForSweep flushes c if the system has entered a new sweep phase
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top