Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 467 for decoded (0.07 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

            return buffer;
        }
    
        /**
         * Parse network interface info from encoded bytes
         *
         * @param data encoded data
         * @param offset offset in data
         * @return parsed NetworkInterfaceInfo
         */
        public static NetworkInterfaceInfo decode(byte[] data, int offset) {
            // Ensure we have enough data for the full structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/http/NtlmSspTest.java

            assertEquals("NTLM ", headerValue.substring(0, 5), "Header should start with 'NTLM '");
    
            // Decode the returned Type 2 message and check its signature and type
            byte[] type2Bytes = Base64.getDecoder().decode(headerValue.substring(5));
            assertEquals('N', (char) type2Bytes[0]);
            assertEquals('T', (char) type2Bytes[1]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            byte[] buffer = new byte[context.size()];
            int encoded = context.encode(buffer, 0);
            assertEquals(context.size(), encoded);
    
            DirectoryLeaseContext decodedContext = new DirectoryLeaseContext(new Smb2LeaseKey(), 0, DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            decodedContext.decode(buffer, 0, buffer.length);
    
            // Verify roundtrip integrity
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/HashCode.java

        byte[] bytes = new byte[string.length() / 2];
        for (int i = 0; i < string.length(); i += 2) {
          int ch1 = decode(string.charAt(i)) << 4;
          int ch2 = decode(string.charAt(i + 1));
          bytes[i / 2] = (byte) (ch1 + ch2);
        }
        return fromBytesNoCopy(bytes);
      }
    
      private static int decode(char ch) {
        if (ch >= '0' && ch <= '9') {
          return ch - '0';
        }
        if (ch >= 'a' && ch <= 'f') {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SecureCredentialStorage.java

         *
         * @param encryptedString base64 encoded encrypted credentials
         * @return decrypted credentials
         * @throws GeneralSecurityException if decryption fails
         */
        public char[] decryptFromString(String encryptedString) throws GeneralSecurityException {
            if (encryptedString == null) {
                return null;
            }
            byte[] encrypted = Base64.getDecoder().decode(encryptedString);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                byte[] dst = new byte[buffer.size()];
                int bytesEncoded = buffer.encode(dst, 0);
    
                assertEquals(buffer.size(), bytesEncoded);
    
                // Decode and verify
                ByteBuffer bb = ByteBuffer.wrap(dst).order(ByteOrder.LITTLE_ENDIAN);
                assertEquals(maxReferralLevel, bb.getShort());
    
                byte[] pathBytes = path.getBytes(StandardCharsets.UTF_16LE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            SMBUtil.writeInt8(expectedIndexNumber, buffer, bufferIndex);
    
            // Decode
            int bytesDecoded = fileInternalInfo.decode(buffer, bufferIndex, 8);
    
            // Verify
            assertEquals(8, bytesDecoded);
            assertEquals(expectedIndexNumber, fileInternalInfo.getIndexNumber());
        }
    
        @Test
        @DisplayName("Test decode with zero index number")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // Decode
            fileBothDirectoryInfo.decode(buffer, 0, buffer.length);
    
            // Verify - the decode method strips null termination, so filename should match
            assertEquals(expectedFilename, fileBothDirectoryInfo.getFilename());
        }
    
        @Test
        @DisplayName("Test decode with null-terminated non-Unicode filename")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

        }
    
        @Test
        @DisplayName("Test decode with minimum valid length")
        void testDecodeMinimumValidLength() throws SMBProtocolDecodingException {
            // Prepare minimum valid buffer - exactly 24 bytes
            byte[] buffer = new byte[28];
            Arrays.fill(buffer, 0, 24, (byte) 0xAA);
    
            // Decode with len = 24 (minimum valid)
            int bytesConsumed = response.decode(buffer, 0, 24);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

                    new RequestParameter("lang", new String[] { "en", "ja" }) };
            String encoded = searchHelper.serializeParameters(params);
            assertNotNull(encoded);
            byte[] compressed = Base64.getUrlDecoder().decode(encoded);
            byte[] jsonBytes = searchHelper.gzipDecompress(compressed);
            String json = new String(jsonBytes);
            assertTrue(json.contains("q"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
Back to top