Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 203 for schar (0.02 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

            Field passwordField = NtlmPasswordAuthenticator.class.getDeclaredField("password");
            passwordField.setAccessible(true);
    
            char[] originalPassword = (char[]) passwordField.get(authenticator);
            char[] clonedPassword = (char[]) passwordField.get(cloned);
    
            assertNotSame(originalPassword, clonedPassword, "Cloned password should be a different array instance");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

        }
    
        /**
         * Test password in equals method
         */
        @Test
        public void testEqualsWithSecurePassword() {
            char[] password1 = "TestPass123!".toCharArray();
            char[] password2 = "TestPass123!".toCharArray();
            char[] password3 = "DifferentPass!".toCharArray();
    
            NtlmPasswordAuthenticator auth1 = new NtlmPasswordAuthenticator("DOMAIN", "user", password1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/SecureCredentialStorage.java

        }
    
        /**
         * Convert char array to byte array (UTF-8)
         */
        private byte[] charsToBytes(char[] chars) {
            if (chars == null) {
                return null;
            }
    
            // Use UTF-8 encoding
            byte[] bytes = new byte[chars.length * 3]; // Max 3 bytes per char in UTF-8
            int byteIndex = 0;
    
            for (char c : chars) {
                if (c < 0x80) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

          }
        }
      }
    
      private static String mikeRepeat(String string, int count) {
        int len = string.length();
        char[] strCopy = new char[len * Integer.highestOneBit(count)];
        string.getChars(0, len, strCopy, 0);
    
        char[] array = new char[len * count];
    
        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        }
        return result;
      }
    
      private static String allMatchingChars(BitSet bitSet) {
        char[] result = new char[bitSet.cardinality()];
        for (int j = 0, c = bitSet.nextSetBit(0); j < result.length; ++j) {
          result[j] = (char) c;
          c = bitSet.nextSetBit(c + 1);
        }
        return new String(result);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Chars.java

          "The hash code of a char is the int version of the char itself, so it's simplest to return"
              + " that.")
      public static int hashCode(char value) {
        return value;
      }
    
      /**
       * Returns the {@code char} value that is equal to {@code value}, if possible.
       *
       * @param value any value in the range of the {@code char} type
       * @return the {@code char} value that equals {@code value}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/Base64Util.java

                return "";
            }
            final int mod = inData.length % 3;
            final int num = inData.length / 3;
            char[] outData = null;
            if (mod != 0) {
                outData = new char[(num + 1) * 4];
            } else {
                outData = new char[num * 4];
            }
            for (int i = 0; i < num; i++) {
                encode(inData, i * 3, outData, i * 4);
            }
            if (mod == 1) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/CharsTest.java

            .isEqualTo(1);
        assertThat(
                Chars.indexOf(
                    new char[] {(char) 2, (char) 3, (char) 2, (char) 3, (char) 4, (char) 2, (char) 3},
                    new char[] {(char) 2, (char) 3, (char) 4}))
            .isEqualTo(2);
        assertThat(
                Chars.indexOf(
                    new char[] {(char) 2, (char) 2, (char) 3, (char) 4, (char) 2, (char) 3, (char) 4},
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            Arrays.fill(decrypted, '\0');
        }
    
        @Test
        public void testEncryptDecryptEmpty() throws Exception {
            char[] plaintext = new char[0];
    
            byte[] encrypted = storage.encryptCredentials(plaintext);
            assertNotNull(encrypted, "Encrypted empty data should not be null");
    
            char[] decrypted = storage.decryptCredentials(encrypted);
            assertNotNull(decrypted, "Decrypted empty data should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Chars.java

          "The hash code of a char is the int version of the char itself, so it's simplest to return"
              + " that.")
      public static int hashCode(char value) {
        return value;
      }
    
      /**
       * Returns the {@code char} value that is equal to {@code value}, if possible.
       *
       * @param value any value in the range of the {@code char} type
       * @return the {@code char} value that equals {@code value}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
Back to top