Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 344 for flushF (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/tracebuf.go

    //
    // Returns whether the buffer was flushed.
    func (w traceWriter) ensure(maxSize int) (traceWriter, bool) {
    	refill := w.traceBuf == nil || !w.available(maxSize)
    	if refill {
    		w = w.refill(traceNoExperiment)
    	}
    	return w, refill
    }
    
    // flush puts w.traceBuf on the queue of full buffers.
    func (w traceWriter) flush() traceWriter {
    	systemstack(func() {
    		lock(&trace.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. src/runtime/tracetype.go

    	// bound is pretty loose, but avoids counting
    	// lots of varint sizes.
    	//
    	// Add 1 because we might also write a traceAllocFreeTypesBatch byte.
    	var flushed bool
    	w, flushed = w.ensure(1 + maxBytes)
    	if flushed {
    		// Annotate the batch as containing types.
    		w.byte(byte(traceAllocFreeTypesBatch))
    	}
    
    	// Emit type.
    	w.varint(uint64(node.id))
    	w.varint(uint64(uintptr(unsafe.Pointer(typ))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/text/tabwriter/tabwriter.go

    // complete for formatting purposes.
    func (b *Writer) Flush() error {
    	return b.flush()
    }
    
    // flush is the internal version of Flush, with a named return value which we
    // don't want to expose.
    func (b *Writer) flush() (err error) {
    	defer b.handlePanic(&err, "Flush")
    	b.flushNoDefers()
    	return nil
    }
    
    // flushNoDefers is like flush, but without a deferred handlePanic call. This
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  8. src/compress/flate/deflate.go

    // If the underlying writer returns an error, Flush returns that error.
    //
    // In the terminology of the zlib library, Flush is equivalent to Z_SYNC_FLUSH.
    func (w *Writer) Flush() error {
    	// For more about flushing:
    	// https://www.bolet.org/~pornin/deflate-flush.html
    	return w.d.syncFlush()
    }
    
    // Close flushes and closes the writer.
    func (w *Writer) Close() error {
    	return w.d.close()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  9. src/mime/quotedprintable/writer.go

    	w.line[w.i] = '='
    	w.i++
    
    	return w.insertCRLF()
    }
    
    func (w *Writer) insertCRLF() error {
    	w.line[w.i] = '\r'
    	w.line[w.i+1] = '\n'
    	w.i += 2
    
    	return w.flush()
    }
    
    func (w *Writer) flush() error {
    	if _, err := w.w.Write(w.line[:w.i]); err != nil {
    		return err
    	}
    
    	w.i = 0
    	return nil
    }
    
    func isWhitespace(b byte) bool {
    	return b == ' ' || b == '\t'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/net/http/clientserver_test.go

    }
    
    func testTrailersServerToClient(t *testing.T, mode testMode, flush bool) {
    	const body = "Some body"
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		w.Header().Set("Trailer", "Server-Trailer-A, Server-Trailer-B")
    		w.Header().Add("Trailer", "Server-Trailer-C")
    
    		io.WriteString(w, body)
    		if flush {
    			w.(Flusher).Flush()
    		}
    
    		// How handlers set Trailers: declare it ahead of time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top