Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 41 for length_is (0.07 seconds)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                byte[] data = new byte[size];
                assertDoesNotThrow(() -> request.setData(data, 0, size));
            }
    
            @ParameterizedTest
            @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) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/rdma/RdmaChannelInfo.java

     */
    package jcifs.internal.smb2.rdma;
    
    /**
     * RDMA channel information for SMB Direct operations.
     *
     * This class encapsulates RDMA channel metadata including remote memory keys,
     * addresses, and lengths for direct memory access operations.
     */
    public class RdmaChannelInfo {
    
        private final Smb2RdmaTransform transform;
    
        /**
         * Create new RDMA channel info
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. cmd/erasure-decode_test.go

    					t.Errorf("Test %d: read returns wrong file content", i)
    				}
    			}
    		}
    	}
    }
    
    // Test erasureDecode with random offset and lengths.
    // This test is t.Skip()ed as it a long time to run, hence should be run
    // explicitly after commenting out t.Skip()
    func TestErasureDecodeRandomOffsetLength(t *testing.T) {
    	if testing.Short() {
    		t.Skip()
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 21K bytes
    - Click Count (0)
  4. 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) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

            }
    
            if (compareResult < 0) {
              high = mid - 1
            } else if (compareResult > 0) {
              low = mid + end + 1
            } else {
              // We found a match, but are the lengths equal?
              val publicSuffixBytesLeft = publicSuffixLength - publicSuffixByteIndex
              var labelBytesLeft = labels[currentLabelIndex].size - currentLabelByteIndex
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/hash/Fingerprint2011.java

        output[1] = seedB + c;
      }
    
      /*
       * Compute an 8-byte hash of a byte array of length greater than 64 bytes.
       */
      private static long fullFingerprint(byte[] bytes, int offset, int length) {
        // For lengths over 64 bytes we hash the end first, and then as we
        // loop we keep 56 bytes of state: v, w, x, y, and z.
        long x = load64(bytes, offset);
        long y = load64(bytes, offset + length - 16) ^ K1;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            if (keyManager == null && (encryptionKey == null || decryptionKey == null)) {
                log.error("No encryption keys available");
                return false;
            }
    
            // Validate key lengths
            try {
                int expectedKeyLength = getKeyLength();
                byte[] encKey = getEncryptionKey();
                byte[] decKey = getDecryptionKey();
    
                try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                baseAuth.close();
                startAuth.close();
                middleAuth.close();
                endAuth.close();
            }
        }
    
        /**
         * Test constant-time comparison with various password lengths.
         */
        @Test
        public void testConstantTimeWithDifferentLengths() throws Exception {
            char[] password1 = "short".toCharArray();
            char[] password2 = "verylongpasswordthatisdifferent".toCharArray();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            int actualLength = (int) lengthField.get(response);
    
            assertEquals(expectedLength, actualLength);
        }
    
        @DisplayName("Test readParametersWireFormat with various lengths")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 100, 1000, 65535, Integer.MAX_VALUE })
        void testReadParametersWireFormatWithVariousLengths(int expectedLength) throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/entity/FessUserTest.java

                return;
            }
            assertNotNull(expected, "Expected array is null but actual is not");
            assertNotNull(actual, "Actual array is null but expected is not");
            assertEquals("Array lengths differ", expected.length, actual.length);
            for (int i = 0; i < expected.length; i++) {
                assertEquals("Arrays differ at index " + i, expected[i], actual[i]);
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 11.2K bytes
    - Click Count (0)
Back to Top