Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 263 for flushed (0.1 sec)

  1. 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)
  2. src/runtime/tracestring.go

    		s = s[:maxTraceStringLen]
    	}
    
    	lock(&t.lock)
    	w := unsafeTraceWriter(gen, t.buf)
    
    	// Ensure we have a place to write to.
    	var flushed bool
    	w, flushed = w.ensure(2 + 2*traceBytesPerNumber + len(s) /* traceEvStrings + traceEvString + ID + len + string data */)
    	if flushed {
    		// Annotate the batch as containing strings.
    		w.byte(byte(traceEvStrings))
    	}
    
    	// Write out the string.
    	w.byte(byte(traceEvString))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/runtime/mgcwork.go

    	bytesMarked uint64
    
    	// Heap scan work performed on this gcWork. This is aggregated into
    	// gcController by dispose and may also be flushed by callers.
    	// Other types of scan work are flushed immediately.
    	heapScanWork int64
    
    	// flushedWork indicates that a non-empty work buffer was
    	// flushed to the global work list since the last gcMarkDone
    	// termination check. Specifically, this indicates that this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. 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)
  5. misc/go_android_exec/exitcode_test.go

    		_, err := f.Write([]byte{text[i]})
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    
    	// The "pre" output should all have been flushed already.
    	if want, got := pre, out.String(); want != got {
    		t.Errorf("filter should have already flushed %q, but flushed %q", want, got)
    	}
    
    	code, err := f.Finish()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Nothing more should have been written to out.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 14:54:58 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. guava/src/com/google/common/io/Flushables.java

            throw e;
          }
        }
      }
    
      /**
       * Equivalent to calling {@code flush(flushable, true)}, but with no {@code IOException} in the
       * signature.
       *
       * @param flushable the {@code Flushable} object to be flushed.
       */
      @Beta
      public static void flushQuietly(Flushable flushable) {
        try {
          flush(flushable, true);
        } catch (IOException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Flushables.java

            throw e;
          }
        }
      }
    
      /**
       * Equivalent to calling {@code flush(flushable, true)}, but with no {@code IOException} in the
       * signature.
       *
       * @param flushable the {@code Flushable} object to be flushed.
       */
      @Beta
      public static void flushQuietly(Flushable flushable) {
        try {
          flush(flushable, true);
        } catch (IOException e) {
    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. src/runtime/traceallocfree.go

    func traceSnapshotMemory(gen uintptr) {
    	assertWorldStopped()
    
    	// Write a batch containing information that'll be necessary to
    	// interpret the events.
    	var flushed bool
    	w := unsafeTraceExpWriter(gen, nil, traceExperimentAllocFree)
    	w, flushed = w.ensure(1 + 4*traceBytesPerNumber)
    	if flushed {
    		// Annotate the batch as containing additional info.
    		w.byte(byte(traceAllocFreeInfoBatch))
    	}
    
    	// Emit info.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top