Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for endOfFile (0.05 sec)

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

            assertEquals(8, fileInfo.size());
    
            // Test parameterized constructor
            long endOfFile = 1024L;
            FileEndOfFileInformation fileInfoWithEof = new FileEndOfFileInformation(endOfFile);
            assertEquals(FileInformation.FILE_ENDOFFILE_INFO, fileInfoWithEof.getFileInformationLevel());
    
            // Test toString
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            long endOfFile = 1024L;
            FileEndOfFileInformation info = new FileEndOfFileInformation(endOfFile);
    
            assertNotNull(info);
            assertEquals(FileInformation.FILE_ENDOFFILE_INFO, info.getFileInformationLevel());
    
            // Verify through toString that value is set
            assertTrue(info.toString().contains("endOfFile=" + endOfFile));
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            SMBUtil.writeTime(maxTime, buffer, 24); // lastWriteTime
            SMBUtil.writeTime(maxTime, buffer, 32); // changeTime
            SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 40); // endOfFile
            SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 48); // allocationSize
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 56); // extFileAttributes
            SMBUtil.writeInt4(Integer.MAX_VALUE, buffer, 64); // eaSize
    
    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/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                standardInfo.allocationSize = 4096L;
                standardInfo.endOfFile = 2048L;
                standardInfo.numberOfLinks = 1;
                standardInfo.deletePending = false;
                standardInfo.directory = false;
    
                assertEquals(2048L, standardInfo.getSize()); // Size returns endOfFile
                assertEquals(0, standardInfo.getAttributes()); // Standard info always returns 0 for attributes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

         */
        public final long getAllocationSize() {
            return this.allocationSize;
        }
    
        /**
         * Get the end of file position
         * @return the endOfFile
         */
        public final long getEndOfFile() {
            return this.endOfFile;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbBasicFileInfo#getSize()
         */
        @Override
        public final long getSize() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

        @DisplayName("Test getLastAccessTime returns 0")
        void testGetLastAccessTime() {
            assertEquals(0L, fileStandardInfo.getLastAccessTime());
        }
    
        @Test
        @DisplayName("Test getSize returns endOfFile value")
        void testGetSize() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[22];
            long expectedAllocationSize = 1024L;
            long expectedEndOfFile = 512L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            i += 8;
            SMBUtil.writeTime(chtime, body, i); // ChangeTime
            i += 8;
    
            SMBUtil.writeInt8(allocSize, body, i); // AllocationSize
            i += 8;
            SMBUtil.writeInt8(eof, body, i); // EndOfFile
            i += 8;
    
            SMBUtil.writeInt4(attrs, body, i); // FileAttributes
            i += 4;
            i += 4; // Reserved2
    
            System.arraycopy(fileId, 0, body, i, 16); // FileId
            i += 16;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // LastWriteTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 24);
            // ChangeTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 32);
            // EndOfFile
            SMBUtil.writeInt8(0, buffer, dataOffset + 40);
            // AllocationSize
            SMBUtil.writeInt8(0, buffer, dataOffset + 48);
            // ExtFileAttributes
            SMBUtil.writeInt4(0, buffer, dataOffset + 56);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                allocationSizeField.setAccessible(true);
                assertEquals(1024L, allocationSizeField.get(response));
    
                Field endOfFileField = Smb2CloseResponse.class.getDeclaredField("endOfFile");
                endOfFileField.setAccessible(true);
                assertEquals(512L, endOfFileField.get(response));
    
                Field fileAttributesField = Smb2CloseResponse.class.getDeclaredField("fileAttributes");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top