Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for nextEntryOffset (0.77 sec)

  1. src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java

                // nothing to do
                return 0;
            }
            final int start = bufferIndex;
    
            this.nextEntryOffset = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            if (this.nextEntryOffset % 4 != 0) {
                throw new SMBProtocolDecodingException("Non aligned nextEntryOffset");
            }
    
            this.action = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                 */
    
                if (lastNameBufferIndex >= bufferIndex && (e.nextEntryOffset == 0 || lastNameBufferIndex < bufferIndex + e.nextEntryOffset)) {
                    lastName = e.filename;
                    resumeKey = e.fileIndex;
                }
    
                bufferIndex += e.nextEntryOffset;
            }
    
            /* last nextEntryOffset for NT 4(but not 98) is 0 so we must
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponse.java

                }
                cur.decode(buffer, bufferIndex, bufferLength);
                infos.add(cur);
                final int nextEntryOffset = cur.getNextEntryOffset();
                if (nextEntryOffset <= 0) {
                    break;
                }
                bufferIndex += nextEntryOffset;
            } while (bufferIndex < bufferOffset + bufferLength);
            this.results = infos.toArray(new FileEntry[infos.size()]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/internal/fscc/FileBothDirectoryInfo.java

        public int getNextEntryOffset() {
            return this.nextEntryOffset;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
        public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            this.nextEntryOffset = SMBUtil.readInt4(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            info.extFileAttributes = SmbFile.ATTR_READONLY;
            info.fileNameLength = 8;
            info.eaSize = 0;
            info.shortNameLength = 8;
    
            String expected = "SmbFindFileBothDirectoryInfo[" + "nextEntryOffset=" + info.nextEntryOffset + ",fileIndex=" + info.fileIndex
                    + ",creationTime=" + new Date(info.creationTime) + ",lastAccessTime=" + new Date(info.lastAccessTime) + ",lastWriteTime="
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

                    this.resumeKey = e.getFileIndex();
                }
    
                bufferIndex += e.getNextEntryOffset();
            }
    
            setResults(results);
    
            /*
             * last nextEntryOffset for NT 4(but not 98) is 0 so we must
             * use dataCount or our accounting will report an error for NT :~(
             */
            return getDataCount();
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top