Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 378 for decoding (2.18 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

        }
    
        @Test
        void decodesPipePeekOnBufferOverflowStatus() throws Exception {
            // For BUFFER_OVERFLOW with FSCTL_PIPE_PEEK, isErrorResponseStatus() should be false and decoding proceeds.
            byte[] header = buildHeader(NtStatus.NT_STATUS_BUFFER_OVERFLOW);
    
            // SrvPipePeekResponse expects at least 16 bytes (4 ints) output
            byte[] out = new byte[16];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for SrvPipePeekResponse
     * Tests the decoding of FSCTL_PIPE_PEEK response according to MS-FSCC 2.3.29
     */
    class SrvPipePeekResponseTest {
    
        private SrvPipePeekResponse response;
    
        @BeforeEach
        void setUp() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

         * Reads the AndX wire format from buffer
         * @param buffer the buffer to read from
         * @param bufferIndex the starting index
         * @return the number of bytes read
         * @throws SMBProtocolDecodingException if decoding fails
         */
        protected int readAndXWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    
            this.wordCount = buffer[bufferIndex];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle large buffer decoding")
            void testLargeBufferDecode() throws SMBProtocolDecodingException {
                byte[] largeBuffer = new byte[65536];
                Arrays.fill(largeBuffer, (byte) 0xFF);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                assertThrows(RuntimeCIFSException.class, () -> {
                    testBlock.readStringLength(buffer, 0, 3);
                });
            }
        }
    
        @Nested
        @DisplayName("Encoding and Decoding Tests")
        class EncodingDecodingTests {
    
            @BeforeEach
            void setup() {
                testBlock = new TestServerMessageBlock(mockConfig);
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            assertEquals(expectedLength, ndrBuffer.getIndex());
            assertEquals(expectedLength, ndrBuffer.getLength());
    
            // Verify content (simplified check, full verification would involve decoding)
            assertEquals(testString.length() + 1, Encdec.dec_uint32le(buffer, 0)); // Actual count
            assertEquals(0, Encdec.dec_uint32le(buffer, 4)); // Offset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

                // Simulate decoding a short
                offset += 2;
                return 0; // Return a dummy value
            }
    
            @Override
            public void enc_ndr_small(int v) {
                // Simulate encoding a small
                offset += 1;
            }
    
            @Override
            public int dec_ndr_small() {
                // Simulate decoding a small
                offset += 1;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/crypto/CachedCipher.java

        protected String transformation = BLOWFISH;
    
        /**
         * The key to use for encryption/decryption.
         */
        protected String key;
    
        /**
         * The character set name to use for encoding/decoding strings.
         */
        protected String charsetName = CoreLibConstants.UTF_8;
    
        /**
         * The queue of ciphers for encryption.
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                        buf.reset();
                    } else {
                        buf.write(b);
                    }
                }
            }));
        }
    
        /** The charset used for encoding and decoding. */
        protected String charset = Constants.UTF_8;
    
        /** Whether to resolve SIDs. */
        protected boolean resolveSids = true;
    
        /** The content length helper. */
        @Resource
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java

            Handler.StorageURLConnection storageConn = (Handler.StorageURLConnection) conn;
    
            assertEquals("mybucket", getField(storageConn, "bucketName"));
            // URL decoding is handled by URL class
            assertEquals("path/file with spaces.txt", getField(storageConn, "objectName"));
        }
    
        /**
         * Test URL parsing with hyphenated bucket name.
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top