Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for truncation (0.16 sec)

  1. android/guava/src/com/google/common/base/Ascii.java

       *   <li>it does not consider word boundaries
       *   <li>if truncating for display to users, there are other considerations that must be taken
       *       into account
       *   <li>the appropriate truncation indicator may be locale-dependent
       *   <li>it is safe to use non-ASCII characters in the truncation indicator
       * </ul>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    		{"test-bucket-list-object", "/obj", "", "", 0, ListObjectsInfo{}, nil, true},
    		// Testing with prefix and truncation (29-30).
    		{"test-bucket-list-object", "new", "", "", 1, resultCases[7], nil, true},
    		{"test-bucket-list-object", "obj", "", "", 2, resultCases[8], nil, true},
    		// Testing with marker, but without prefix and truncation (31-35).
    		{"test-bucket-list-object", "", "newPrefix0", "", 6, resultCases[9], nil, true},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Ascii.java

       *   <li>it does not consider word boundaries
       *   <li>if truncating for display to users, there are other considerations that must be taken
       *       into account
       *   <li>the appropriate truncation indicator may be locale-dependent
       *   <li>it is safe to use non-ASCII characters in the truncation indicator
       * </ul>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

      /**
       * The sizes of the chunks of this request's body, or an empty list if the request's body
       * was empty or unchunked.
       */
      val chunkSizes: List<Int>,
      /** The total size of the body of this POST request (before truncation).*/
      val bodySize: Long,
      /** The body of this POST request. This may be truncated. */
      val body: Buffer,
      /**
       * The index of this request on its HTTP connection. Since a single HTTP connection may serve
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        checkSha1("4c9007f4026250c6bc8414f9bf50c86c2d7235da", key, data);
      }
    
      public void testRfc2202_hmacSha1_case5() {
        byte[] key = fillByteArray(20, 0x0c);
        String data = "Test With Truncation";
    
        checkSha1("4c1a03424b55e07fe7f27be1d58bb9324a9a5a04", key, data);
      }
    
      public void testRfc2202_hmacSha1_case6() {
        byte[] key = fillByteArray(80, 0xaa);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/bytes/buffer.go

    func (b *Buffer) Truncate(n int) {
    	if n == 0 {
    		b.Reset()
    		return
    	}
    	b.lastRead = opInvalid
    	if n < 0 || n > b.Len() {
    		panic("bytes.Buffer: truncation out of range")
    	}
    	b.buf = b.buf[:b.off+n]
    }
    
    // Reset resets the buffer to be empty,
    // but it retains the underlying storage for use by future writes.
    // Reset is the same as [Buffer.Truncate](0).
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/IntMathTest.java

            // The BigInteger implementation is tested separately, use it as the reference.
            // Promote the int value (rather than using intValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/IntMathTest.java

            // The BigInteger implementation is tested separately, use it as the reference.
            // Promote the int value (rather than using intValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/LongMathTest.java

        for (long x : POSITIVE_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
            // Promote the long value (rather than using longValue() on the expected value) to avoid
            // any risk of truncation which could lead to a false positive.
            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(LongMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(long, FLOOR). */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/BloomFilter.java

       * @param m total number of bits in Bloom filter (must be positive)
       */
      @VisibleForTesting
      static int optimalNumOfHashFunctions(long n, long m) {
        // (m / n) * log(2), but avoid truncation due to division!
        return max(1, (int) Math.round((double) m / n * Math.log(2)));
      }
    
      /**
       * Computes m (total bits of Bloom filter) which is expected to achieve, for the specified
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
Back to top