Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 263 for Flush (0.15 sec)

  1. android/guava/src/com/google/common/io/AppendableWriter.java

        checkNotClosed();
        // tricky: append takes start, end pair...
        target.append(str, off, off + len);
      }
    
      @Override
      public void flush() throws IOException {
        checkNotClosed();
        if (target instanceof Flushable) {
          ((Flushable) target).flush();
        }
      }
    
      @Override
      public void close() throws IOException {
        this.closed = true;
        if (target instanceof Closeable) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CountingOutputStream.java

        out.write(b);
        count++;
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
      // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream.
      // It should flush itself if necessary.
      @Override
      public void close() throws IOException {
        out.close();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ReaderInputStream.java

            // == true. Then there is a final call to flush.
            CoderResult result;
            if (doneFlushing) {
              result = CoderResult.UNDERFLOW;
            } else if (doneEncoding) {
              result = encoder.flush(byteBuffer);
            } else {
              result = encoder.encode(charBuffer, byteBuffer, endOfInput);
            }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  4. internal/http/response-recorder.go

    		lrw.writeHeaders(&lrw.headers, code, lrw.ResponseWriter.Header())
    		lrw.headersLogged = true
    		lrw.ResponseWriter.WriteHeader(code)
    	}
    }
    
    // Flush - Calls the underlying Flush.
    func (lrw *ResponseRecorder) Flush() {
    	lrw.ResponseWriter.(http.Flusher).Flush()
    }
    
    // Size - returns  the number of bytes written
    func (lrw *ResponseRecorder) Size() int {
    	return lrw.bytesWritten
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 00:13:19 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java

            }
    
            CacheRecord record = new CacheRecord(extensionRealm, extensionDescriptor, artifacts);
    
            cache.put(key, record);
    
            return record;
        }
    
        public void flush() {
            for (CacheRecord record : cache.values()) {
                ClassRealm realm = record.getRealm();
                try {
                    realm.getWorld().disposeRealm(realm.getId());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    // Writer implements buffering for an [io.Writer] object.
    // If an error occurs writing to a [Writer], no more data will be
    // accepted and all subsequent writes, and [Writer.Flush], will return the error.
    // After all data has been written, the client should call the
    // [Writer.Flush] method to guarantee all data has been forwarded to
    // the underlying [io.Writer].
    type Writer struct {
    	err error
    	buf []byte
    	n   int
    	wr  io.Writer
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          }
        }
    
        @Throws(IOException::class)
        override fun flush() {
          lock.assertNotHeld()
    
          ******@****.***ck {
            checkOutNotClosed()
          }
          // TODO(jwilson): flush the connection?!
          while (sendBuffer.size > 0L) {
            emitFrame(false)
            connection.flush()
          }
        }
    
        override fun timeout(): Timeout = writeTimeout
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/curl/CurlRequest.java

                            writer.flush();
                        }
                    } else if (bodyStream != null) {
                        logger.fine(() -> ">>> <binary>");
                        connection.setDoOutput(true);
                        try (final OutputStream out = connection.getOutputStream()) {
                            IOUtils.copy(bodyStream, out);
                            out.flush();
                        }
                    }
    Java
    - Registered: Thu May 02 15:34:13 GMT 2024
    - Last Modified: Sun Feb 12 12:21:25 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  9. cmd/batch-expire_gen_test.go

    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodeBatchJobExpire(b *testing.B) {
    	v := BatchJobExpire{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	rd := msgp.NewEndlessReader(buf.Bytes(), b)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  10. cmd/last-minute_gen_test.go

    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodeAccElem(b *testing.B) {
    	v := AccElem{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	rd := msgp.NewEndlessReader(buf.Bytes(), b)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jul 05 21:45:49 GMT 2022
    - 6.8K bytes
    - Viewed (0)
Back to top