Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,393 for lengths (0.1 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            for (i in strings.indices) {
              lengths[i] = strings[i].toLong()
            }
          } catch (_: NumberFormatException) {
            invalidLengths(strings)
          }
        }
    
        /** Append space-prefixed lengths to [writer]. */
        @Throws(IOException::class)
        internal fun writeLengths(writer: BufferedSink) {
          for (length in lengths) {
            writer.writeByte(' '.code).writeDecimalLong(length)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java

            }
            maxLengthMap.put(mimeType, maxLength);
        }
    
        /**
         * Gets the maximum content length for a specific MIME type.
         * If no specific length is set for the MIME type, returns the default maximum length.
         * @param mimeType The MIME type to get the maximum length for
         * @return The maximum content length in bytes
         */
        public long getMaxLength(final String mimeType) {
            if (StringUtil.isBlank(mimeType)) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/NetbiosAddressTest.java

            assertNotNull(anyHosts);
            assertNotNull(masterBrowser);
            assertNotNull(smbServer);
    
            // Test that they have expected lengths
            assertEquals(16, anyHosts.length());
            assertEquals(15, masterBrowser.length());
            assertEquals(15, smbServer.length());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            @DisplayName("Should handle various offsets and lengths")
            @CsvSource({ "1024, 0, 1024", "1024, 100, 900", "1024, 500, 524", "2048, 1024, 1024", "4096, 2048, 2048", "65536, 32768, 32768" })
            void testVariousOffsetsAndLengths(int dataSize, int offset, int length) {
                byte[] data = new byte[dataSize];
                assertDoesNotThrow(() -> request.setData(data, offset, length));
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/RdmaChannelInfo.java

     * addresses, and lengths for direct memory access operations.
     */
    public class RdmaChannelInfo {
    
        private final Smb2RdmaTransform transform;
    
        /**
         * Create new RDMA channel info
         *
         * @param remoteKey remote memory key for RDMA access (token)
         * @param address remote memory address (offset)
         * @param length length of the memory region
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

          if (first == second) {
            return 0;
          } else if (first == null) {
            return -1;
          } else if (second == null) {
            return 1;
          } else if (first.length() != second.length()) {
            return first.length() - second.length();
          } else {
            return first.compareTo(second);
          }
        }
      }
    
      /** Decreasing integer values. A {@code null} comes before any non-null value. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/Fingerprint2011.java

          result = murmurHash64WithSeed(bytes, offset, length, K0 ^ K1 ^ K2);
        } else if (length <= 64) {
          result = hashLength33To64(bytes, offset, length);
        } else {
          result = fullFingerprint(bytes, offset, length);
        }
    
        long u = length >= 8 ? load64(bytes, offset) : K0;
        long v = length >= 9 ? load64(bytes, offset + length - 8) : K0;
        result = hash128to64(result + v, u);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. cmd/erasure-decode_test.go

    	r := rand.New(rand.NewSource(UTCNow().UnixNano()))
    
    	buf := &bytes.Buffer{}
    
    	// Verify erasure.Decode() for random offsets and lengths.
    	for range iterations {
    		offset := r.Int63n(length)
    		readLen := r.Int63n(length - offset)
    
    		expected := data[offset : offset+readLen]
    
    		// Get the checksums of the current part.
    		bitrotReaders := make([]io.ReaderAt, len(disks))
    		for index, disk := range disks {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. src/test/java/jcifs/NetbiosNameTest.java

            // When
            String scope = mockNetbiosName.getScope();
    
            // Then
            assertNull(scope);
        }
    
        @Test
        @DisplayName("Should handle various name lengths")
        void testVariousNameLengths() {
            // NetBIOS names can be up to 15 characters
            String[] testNames = { "A", "SERVER", "LONGSERVERNAME", "EXACTLY15CHARS1" };
    
            for (String testName : testNames) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                    final byte[] output = new byte[cipher.getOutputSize(input.length)];
                    int len = cipher.processBytes(input, 0, input.length, output, 0);
                    len += cipher.doFinal(output, len);
    
                    plaintext = new byte[ciphertext.length];
                    System.arraycopy(output, 0, plaintext, 0, ciphertext.length);
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top