Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for transferTo (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/FileOperator.kt

      ) {
        if (byteCount < 0L) {
          throw IndexOutOfBoundsException()
        }
        var mutablePos = pos
        var mutableByteCount = byteCount
    
        while (mutableByteCount > 0L) {
          val bytesRead = fileChannel.transferTo(mutablePos, mutableByteCount, sink)
          mutablePos += bytesRead
          mutableByteCount -= bytesRead
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/nio/ChannelUtil.java

            }
        }
    
        /**
         * Transfers the contents of the file channel {@literal from} to {@literal to}.
         *
         * @param from
         *            The source file channel. Must not be {@literal null}.
         * @param to
         *            The destination file channel. Must not be {@literal null}.
         * @return The number of bytes transferred.
         */
        public static long transfer(final FileChannel from, final FileChannel to) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/ByteStreams.java

      /** Creates a new byte array for buffering reads or writes. */
      static byte[] createBuffer() {
        return new byte[BUFFER_SIZE];
      }
    
      /**
       * There are three methods to implement {@link FileChannel#transferTo(long, long,
       * WritableByteChannel)}:
       *
       * <ol>
       *   <li>Use sendfile(2) or equivalent. Requires that both the input channel and the output
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt

        val headers1 =
          Headers
            .Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        val headers2 =
          Headers
            .Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        assertThat(headers2).isEqualTo(headers1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

            } catch (final Exception e) {
                engineObj.status = "red";
                engineObj.exception = e.getMessage();
            }
            return engineObj;
        }
    
        /**
         * Data transfer object representing filesystem statistics.
         */
        public static class FsObj {
            /**
             * Default constructor.
             */
            public FsObj() {
                // Default constructor
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

        responseCode != HTTP_NOT_MODIFIED
      ) {
        return true
      }
    
      // If the Content-Length or Transfer-Encoding headers disagree with the response code, the
      // response is malformed. For best compatibility, we honor the headers.
      if (headersContentLength() != -1L ||
        "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
      ) {
        return true
      }
    
      return false
    }
    
    @Deprecated(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. LICENSES/third_party/forked/libcontainer/NOTICE

    This product includes software developed at Docker, Inc. (http://www.docker.com).
    
    The following is courtesy of our legal counsel:
    
    
    Use and transfer of Docker may be subject to certain restrictions by the
    United States and other governments.  
    It is your responsibility to ensure that your use and/or transfer does not
    violate applicable laws. 
    
    For more information, please see http://www.bis.doc.gov
    
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Tue Oct 22 13:56:22 UTC 2024
    - 518 bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

          val contentLength = body.contentLength()
          if (contentLength != -1L) {
            requestBuilder.header("Content-Length", contentLength.toString())
            requestBuilder.removeHeader("Transfer-Encoding")
          } else {
            requestBuilder.header("Transfer-Encoding", "chunked")
            requestBuilder.removeHeader("Content-Length")
          }
        }
    
        if (userRequest.header("Host") == null) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

      private val headersReader = HeadersReader(socket.source)
    
      private val Response.isChunked: Boolean
        get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
    
      private val Request.isChunked: Boolean
        get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true)
    
      /**
       * Trailers received when the response body became exhausted.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt

            val toSink = toSocket.sink().buffer()
            openSockets.add(toSocket)
            transfer(fromAddress, toAddress, fromSource, toSink)
            transfer(fromAddress, toAddress, toSource, fromSink)
          }
    
          else -> throw ProtocolException("unexpected command: $command")
        }
      }
    
      private fun transfer(
        fromAddress: InetAddress,
        toAddress: InetAddress,
        source: BufferedSource,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top