Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for truncated (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt

            val start = nextOutFrame.start
            var truncated: Boolean
            var end: Long
            if (outFramesIterator.hasNext()) {
              nextOutFrame = outFramesIterator.next()
              end = nextOutFrame.start
              truncated = false
            } else {
              end = outBytes.size.toLong()
              truncated = nextOutFrame.truncated
            }
    
            // Write a frame.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

      public val url: HttpUrl,
      /** All headers. */
      public val headers: Headers,
      /** The body of this request, or null if it has none. This may be truncated. */
      public val body: ByteString?,
      /** The total size of the body of this request (before truncation).*/
      public val bodySize: Long,
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

            }
          }
        }
    
      override fun peekTrailers(): Headers? {
        if (trailers === TRAILERS_RESPONSE_BODY_TRUNCATED) {
          throw IOException("Trailers cannot be read because the response body was truncated")
        }
        check(state == STATE_READING_RESPONSE_BODY || state == STATE_CLOSED) {
          "Trailers cannot be read because the state is $state"
        }
        return trailers
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeRangeMap.java

                  rangeToRemove.upperBound,
                  rangeMapEntry.getUpperBound(),
                  mapEntryBelowToTruncate.getValue().getValue());
            }
            // overwrite mapEntryToTruncateBelow with a truncated range
            putRangeMapEntry(
                rangeMapEntry.getLowerBound(),
                rangeToRemove.lowerBound,
                mapEntryBelowToTruncate.getValue().getValue());
          }
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Ascii.java

       * the sequence will be returned as a string with no changes to the content.
       *
       * <p>Examples:
       *
       * {@snippet :
       * Ascii.truncate("foobar", 7, "..."); // returns "foobar"
       * Ascii.truncate("foobar", 5, "..."); // returns "fo..."
       * }
       *
       * <p><b>Note:</b> This method <i>may</i> work with certain non-ASCII text but is not safe for use
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Files.java

        }
      }
    
      /**
       * Returns a new {@link ByteSink} for writing bytes to the given file. The given {@code modes}
       * control how the file is opened for writing. When no mode is provided, the file will be
       * truncated before writing. When the {@link FileWriteMode#APPEND APPEND} mode is provided, writes
       * will append to the end of the file without truncating it.
       *
       * @since 14.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeSet.java

         * affect the values.
         */
        private final Range<Cut<C>> lowerBoundWindow;
    
        /**
         * restriction is the subRangeSet view; ranges are truncated to their intersection with
         * restriction.
         */
        private final Range<C> restriction;
    
        private final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

       * body. If fewer than [byteCount] bytes are in the response body, the full response body is
       * returned. If more than [byteCount] bytes are in the response body, the returned value
       * will be truncated to [byteCount] bytes.
       *
       * It is an error to call this method after the body has been consumed.
       *
       * **Warning:** this method loads the requested bytes into memory. Most applications should set
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

          this.notAfter = notAfter
        }
    
        /**
         * Sets the certificate to be valid immediately and until the specified duration has elapsed.
         * The precision of this field is seconds; further precision will be truncated.
         */
        fun duration(
          duration: Long,
          unit: TimeUnit,
        ) = apply {
          val now = System.currentTimeMillis()
          validityInterval(now, now + unit.toMillis(duration))
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          val fileBuilder = StringBuilder(key).append('.')
          val truncateTo = fileBuilder.length
          for (i in 0 until valueCount) {
            fileBuilder.append(i)
            cleanFiles += directory / fileBuilder.toString()
            fileBuilder.append(".tmp")
            dirtyFiles += directory / fileBuilder.toString()
            fileBuilder.setLength(truncateTo)
          }
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
Back to top