Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NextEntryOffset (0.47 sec)

  1. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            // Prepare test data with maximum values
            byte[] buffer = createValidBuffer("maxfile.txt", "MAXFIL~1.TXT", true);
    
            // Set maximum values
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 0); // nextEntryOffset
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 4); // fileIndex
            // For time values, use a reasonable max time that won't overflow
            long maxTime = System.currentTimeMillis() + 1000000000000L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

        @DisplayName("Test readParametersWireFormat with non-aligned nextEntryOffset throws exception")
        void testReadParametersWireFormatNonAlignedOffset() throws Exception {
            ByteBuffer buffer = ByteBuffer.allocate(100);
            buffer.order(ByteOrder.LITTLE_ENDIAN);
    
            // Create notification with non-aligned nextEntryOffset
            buffer.putInt(3); // Non-aligned nextEntryOffset (not divisible by 4)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

                // Notify lease manager
                leaseManager.handleDirectoryChange(handle.getDirectoryPath(), fileName, changeType);
    
                if (nextEntryOffset == 0) {
                    break;
                }
                offset += nextEntryOffset;
            }
        }
    
        /**
         * Convert SMB2 action to change type
         *
         * @param action SMB2 file action
         * @return directory change type
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // Due to bug in line 96, data must be written at bufferIndex=8
            // Write entries with proper nextEntryOffset chain starting at 8
            int currentOffset = 8;
            for (int i = 0; i < 3; i++) {
                // Set NextEntryOffset (104 bytes to next, 0 for last)
                SMBUtil.writeInt4(i < 2 ? 104 : 0, buffer, currentOffset);
                // FileIndex
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  5. docs/smb3-features/04-directory-leasing-design.md

                
                // Notify lease manager
                leaseManager.handleDirectoryChange(handle.directoryPath, fileName, changeType);
                
                if (nextEntryOffset == 0) break;
                offset += nextEntryOffset;
            }
        }
        
        private DirectoryChangeType convertAction(int action) {
            switch (action) {
                case FILE_ACTION_ADDED: return DirectoryChangeType.FILE_ADDED;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            // Write notification data at buffer offset 80
            int notifyOffset = 80;
            SMBUtil.writeInt4(0, buffer, notifyOffset); // NextEntryOffset (0 = last entry)
            SMBUtil.writeInt4(1, buffer, notifyOffset + 4); // Action (FILE_ACTION_ADDED)
            // Write filename in Unicode
            String fileName = "test.txt";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            SMBUtil.writeInt4(8, buffer, 8); // file name length
    
            assertThrows(SMBProtocolDecodingException.class, () -> {
                notifyInfo.decode(buffer, 0, buffer.length);
            }, "Non aligned nextEntryOffset");
        }
    
        @ParameterizedTest
        @DisplayName("Test decode with various action values")
        @ValueSource(ints = { FileNotifyInformation.FILE_ACTION_ADDED, FileNotifyInformation.FILE_ACTION_REMOVED,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top