Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for AllocInfo (0.09 sec)

  1. src/main/java/jcifs/smb1/smb1/AllocInfo.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    interface AllocInfo {
        long getCapacity();
    
        long getFree();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 942 bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/AllocInfo.java

     * Used in SMB protocol operations to query disk space information from remote SMB shares.
     *
     * @author mbechler
     */
    public interface AllocInfo extends FileSystemInformation {
    
        /**
         * Gets the total capacity of the allocation.
         *
         * @return total capacity
         */
        long getCapacity();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/AllocInfoTest.java

                TestAllocInfo allocInfo = new TestAllocInfo(capacity, free);
    
                // When - multiple calls should return same values
                long firstCapacityCall = allocInfo.getCapacity();
                long secondCapacityCall = allocInfo.getCapacity();
                long firstFreeCall = allocInfo.getFree();
                long secondFreeCall = allocInfo.getFree();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal.fscc;
    
    import jcifs.Decodable;
    import jcifs.internal.AllocInfo;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Represents the FILE_FS_FULL_SIZE_INFORMATION structure used to query comprehensive file system size information.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/fscc/FileFsSizeInformation.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal.fscc;
    
    import jcifs.internal.AllocInfo;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Represents the FILE_FS_SIZE_INFORMATION structure used to query file system size information.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for the {@link AllocInfo} interface.
     * Since {@code AllocInfo} only declares getters, the tests focus on
     * verifying that implementations honour the contract.
     */
    @ExtendWith(MockitoExtension.class)
    public class AllocInfoTest {
    
        @Mock
        AllocInfo mockAllocInfo;
    
        /**
         * Happy path – verifies that getters return the values supplied by the
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                buffer.putInt(2048);
    
                // When
                allocInfo.decode(buffer.array(), 0, 24);
    
                // Then
                assertEquals(5000L * 4 * 2048, allocInfo.getCapacity());
                assertEquals(2000L * 4 * 2048, allocInfo.getFree());
                assertEquals(FileSystemInformation.FS_SIZE_INFO, allocInfo.getFileSystemInformationClass());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                assertTrue(fullSizeInfo instanceof FileSystemInformation);
    
                // All should be AllocInfo
                assertTrue(smbInfo instanceof AllocInfo);
                assertTrue(sizeInfo instanceof AllocInfo);
                assertTrue(fullSizeInfo instanceof AllocInfo);
            }
        }
    
        @Nested
        @DisplayName("Performance and Boundary Tests")
        class PerformanceTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putInt(2048);
    
                // When
                allocInfo.decode(buffer.array(), 0, 32);
    
                // Then
                assertEquals(5000L * 4 * 2048, allocInfo.getCapacity());
                assertEquals(2000L * 4 * 2048, allocInfo.getFree());
                assertEquals(FileSystemInformation.FS_FULL_SIZE_INFO, allocInfo.getFileSystemInformationClass());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

            final int start = bufferIndex;
            final AllocInfo inf = createInfo();
            if (inf != null) {
                bufferIndex += inf.decode(buffer, bufferIndex, getDataCount());
                this.info = inf;
            }
            return bufferIndex - start;
        }
    
        /**
         * @return
         */
        private AllocInfo createInfo() {
            AllocInfo inf;
            switch (this.informationLevel) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top