Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for AllocInfo (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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();
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  2. 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.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. 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.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  4. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. 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 {
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  6. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.9K bytes
    - Click Count (0)
  7. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 30.5K bytes
    - Click Count (0)
  8. 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) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/fscc/SmbInfoAllocation.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 SMB_INFO_ALLOCATION information level used in SMB transaction requests.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java

        // information levels
        static final int SMB_INFO_ALLOCATION = 1;
        static final int SMB_QUERY_FS_SIZE_INFO = 0x103;
        static final int SMB_FS_FULL_SIZE_INFORMATION = 1007;
    
        class SmbInfoAllocation implements AllocInfo {
            long alloc; // Also handles SmbQueryFSSizeInfo
            long free;
            int sectPerAlloc;
            int bytesPerSect;
    
            @Override
            public long getCapacity() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.1K bytes
    - Click Count (0)
Back to Top