Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 271 for setBytes (0.13 sec)

  1. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        assertThat(fingerprint(stringA.getBytes(UTF_8)))
            .isNotEqualTo(fingerprint(stringB.getBytes(UTF_8)));
    
        // ISO 8859-1 only has 0-255 (ubyte) representation so throws away UTF-8 characters
        // greater than 127 (ie with their top bit set).
        // Don't attempt to do this in real code.
        assertEquals(
            fingerprint(stringA.getBytes(ISO_8859_1)), fingerprint(stringB.getBytes(ISO_8859_1)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                byte[] buffer = new byte[300];
    
                contexts[0] = new TestCreateContextResponse("CONTEXT1".getBytes(StandardCharsets.UTF_8));
                contexts[1] = new TestCreateContextResponse("CONTEXT2".getBytes(StandardCharsets.UTF_8));
                contexts[2] = new TestCreateContextResponse("CONTEXT3".getBytes(StandardCharsets.UTF_8));
    
                // Decode each context
                for (int i = 0; i < contexts.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            // Simulate message exchange
            preauthService.updatePreauthHash(sessionId, "Message1".getBytes());
            preauthService.updatePreauthHash(sessionId, "Message2".getBytes());
    
            byte[] expectedHash = preauthService.getCurrentPreauthHash(sessionId);
    
            // Validation should pass with correct hash
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/HMACT64Test.java

    @ExtendWith(MockitoExtension.class)
    class HMACT64Test {
    
        private static final byte[] TEST_KEY = "testkey".getBytes();
        private static final byte[] LONG_TEST_KEY = "thisisalongtestkeythatislongerthan64bytesandshouldbetruncated".getBytes();
        private static final byte[] SHORT_TEST_KEY = "short".getBytes();
        private static final byte[] TEST_DATA = "testdata".getBytes();
        private static final byte[] EMPTY_DATA = new byte[0];
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

          new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5");
      private static final SecretKey SHA1_KEY =
          new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1");
      private static final SecretKey SHA256_KEY =
          new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
      private static final SecretKey SHA512_KEY =
          new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/util/HMACT64Test.java

    import org.junit.jupiter.api.Test;
    
    class HMACT64Test {
    
        private static final byte[] TEST_KEY = "testkey".getBytes();
        private static final byte[] LONG_TEST_KEY = new byte[80]; // Longer than 64 bytes
        private static final byte[] SHORT_TEST_KEY = "short".getBytes();
        private static final byte[] TEST_DATA = "testdata".getBytes();
        private static final byte[] EMPTY_DATA = new byte[0];
    
        static {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            setConverter(response, 0);
    
            // Set number of entries
            setNumEntries(response, 1);
    
            // Write share name (13 bytes, null padded)
            byte[] nameBytes = shareName.getBytes(StandardCharsets.US_ASCII);
            System.arraycopy(nameBytes, 0, buffer, bufferIndex, Math.min(nameBytes.length, 13));
            bufferIndex += 14;
    
            // Write type (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                contexts[0] = new TestCreateContextRequest("CONTEXT1".getBytes(StandardCharsets.UTF_8));
                contexts[1] = new TestCreateContextRequest("CONTEXT2".getBytes(StandardCharsets.UTF_8));
                contexts[2] = new TestCreateContextRequest("CONTEXT3".getBytes(StandardCharsets.UTF_8));
    
                // Encode all contexts
                byte[] buffer = new byte[512];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/StringsTest.java

            }
    
            @Test
            @DisplayName("getBytes should encode string with specified charset")
            void testGetBytesWithCharset() {
                // When
                byte[] utf8Bytes = Strings.getBytes(TEST_STRING, StandardCharsets.UTF_8);
                byte[] utf16Bytes = Strings.getBytes(TEST_STRING, StandardCharsets.UTF_16LE);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/FacetResponseTest.java

            String fullFieldName = Constants.FACET_FIELD_PREFIX + encodedFieldName;
    
            assertTrue(fullFieldName.startsWith("field:"));
            assertTrue(fullFieldName.contains(encodedFieldName));
    
            String queryName = "title:test";
            String encodedQueryName = BaseEncoding.base64().encode(queryName.getBytes(StandardCharsets.UTF_8));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top