Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 507 for decoding (1.3 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

            // Create buffer for encoding - initially allocate some space
            byte[] encodeBuffer = new byte[1024];
            NdrBuffer dst = new NdrBuffer(encodeBuffer, 0);
            info1.encode(dst);
    
            ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
            // Use the encoded buffer for decoding
            NdrBuffer src = new NdrBuffer(encodeBuffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                // Create separate mocks for encoding and decoding to simulate real buffer
                NdrBuffer encodeBuffer = mock(NdrBuffer.class);
                NdrBuffer decodeBuffer = mock(NdrBuffer.class);
                when(decodeBuffer.dec_ndr_short()).thenReturn(originalValue);
    
                // When: Encoding then decoding
                ndrShort1.encode(encodeBuffer);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                array.entries = new samr.SamrSamEntry[1]; // Pre-populate to avoid decoding
                array.entries[0] = new samr.SamrSamEntry();
    
                when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 100); // count, _entriesp
                when(mockDeferredBuffer.dec_ndr_long()).thenReturn(1); // _entriess
                // Setup deferred buffer chain for entry decoding
                mockDeferredBuffer.deferred = mockDeferredBuffer;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/rpcTest.java

                // When: Decoding the unicode string
                unicodeString.decode(mockNdrBuffer);
    
                // Then: Verify the decoding sequence and values
                verify(mockNdrBuffer).align(4);
                verify(mockNdrBuffer, times(2)).dec_ndr_short();
                verify(mockNdrBuffer).dec_ndr_long();
                // No deferred decoding for null buffer
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/ndr/NdrObject.java

     * This abstract class defines the interface for encoding and decoding NDR data types.
     */
    public abstract class NdrObject {
    
        /**
         * Default constructor for NDR object
         */
        public NdrObject() {
            // Default constructor
        }
    
        /**
         * Encodes this NDR object into the specified buffer
         * @param dst the destination buffer for encoding
         * @throws NdrException if encoding fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/ndr/NdrObject.java

     * This abstract class defines the interface for encoding and decoding NDR data types.
     */
    public abstract class NdrObject {
    
        /**
         * Default constructor for NDR object
         */
        public NdrObject() {
            // Default constructor
        }
    
        /**
         * Encodes this NDR object into the specified buffer
         * @param dst the destination buffer for encoding
         * @throws NdrException if encoding fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

            return url;
        }
    
        /**
         * Extracts and processes the site path from a URL with proper encoding handling.
         * Removes protocol, query parameters, and applies URL decoding based on encoding settings.
         *
         * @param u the URL string to process
         * @param encoding the character encoding to use for URL decoding
         * @return the processed site path, abbreviated if necessary
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

     * <p>
     * The class only contains an encode/decode pair that delegates to
     * {@link NdrBuffer#enc_ndr_hyper(long)} and {@link NdrBuffer#dec_ndr_hyper()}.
     * The tests verify that:
     * <ul>
     *   <li>encoding and decoding round‑trip correctly handle typical, zero,
     *       and extreme {@code long} values.</li>
     *   <li>encode/decode methods interact correctly with a mocked
     *       {@link NdrBuffer} so that the correct method is called with
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java

                array.entries = new samr.SamrSamEntry[1]; // Pre-populate to avoid decoding
                array.entries[0] = new samr.SamrSamEntry();
    
                when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 100); // count, _entriesp
                when(mockDeferredBuffer.dec_ndr_long()).thenReturn(1); // _entriess
                // Setup deferred buffer chain for entry decoding
                mockDeferredBuffer.deferred = mockDeferredBuffer;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

        }
    
        @Test
        @DisplayName("Test context encoding")
        public void testEncoding() {
            byte[] buffer = new byte[256];
            int encodedSize = context.encode(buffer, 0);
    
            assertTrue(encodedSize > 8); // Minimum size: count + padding + flags + algorithms
            assertEquals(context.size(), encodedSize);
        }
    
        @Test
        @DisplayName("Test context decoding")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top