Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 246 for positions (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            void testReadBytesWireFormatDifferentPositions() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[1024];
    
                // Test at different positions
                int[] positions = { 0, 50, 100, 500, 800 };
    
                for (int position : positions) {
                    SMBUtil.writeInt2(4, buffer, position);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

        void testReadBytesWireFormatDifferentBufferPositions() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[1024];
    
            // Test at different positions in the buffer
            int[] positions = { 0, 10, 100, 500 };
    
            for (int position : positions) {
                // Set structure size to 2 at the given position
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            void testReadBytesWireFormatDifferentStartPositions() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[20];
    
                // Test at different positions
                int[] positions = { 0, 5, 10, 15 };
    
                for (int pos : positions) {
                    SMBUtil.writeInt2(4, buffer, pos);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

        }
    
        @Test
        @DisplayName("Test reading from different buffer positions")
        void testReadFromDifferentPositions() throws Exception {
            byte[] buffer = new byte[200];
    
            // Test at various positions in the buffer
            int[] positions = { 0, 10, 50, 100, 150 };
    
            for (int pos : positions) {
                when(mockConfig.getPid()).thenReturn(1234); // Mock getPid for each new instance
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            }
    
            @Test
            @DisplayName("Should read from various buffer positions")
            void testReadBytesWireFormatAtDifferentPositions() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[20];
                int[] positions = { 0, 2, 4, 8, 10, 15 };
    
                for (int pos : positions) {
                    // Clear buffer
                    buffer = new byte[20];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            pad8Method.setAccessible(true);
    
            // Test various positions
            int[] positions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16 };
            for (int pos : positions) {
                int padding = (int) pad8Method.invoke(req, pos);
    
                // Verify padding makes position 8-byte aligned
                assertEquals(0, (pos + padding) % 8);
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComSeek.java

    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 COM_SEEK command implementation.
     *
     * This command changes the current file position pointer for a file.
     * It allows seeking to different positions within an open file.
     *
     * @author mbechler
     */
    public class SmbComSeek extends ServerMessageBlock {
    
        /**
         * Constructs a seek command.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

            clientMap.put(Pattern.compile(regex), client);
        }
    
        /**
         * Adds a client with a regular expression pattern at a specific position.
         * @param regex The regular expression to match URLs.
         * @param client The CrawlerClient instance.
         * @param pos The position to add the client.
         */
        public void addClient(final String regex, final CrawlerClient client, final int pos) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                auth1.equals(auth2);
            }
        }
    
        /**
         * Test that password comparison is constant-time by comparing execution times
         * for passwords that differ at different positions.
         */
        @Test
        public void testConstantTimePasswordComparison() throws Exception {
            char[] basePassword = "supersecretpassword123456789".toCharArray();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ACETest.java

            @DisplayName("Should validate constant bit positions")
            void shouldHaveCorrectBitPositions() {
                // Verify specific bit positions as documented in comments
                assertEquals(0, Integer.numberOfTrailingZeros(ACE.FILE_READ_DATA), "FILE_READ_DATA should be at bit position 0");
                assertEquals(1, Integer.numberOfTrailingZeros(ACE.FILE_WRITE_DATA), "FILE_WRITE_DATA should be at bit position 1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
Back to top