Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for AllocInfo (0.05 seconds)

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

  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();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 942 bytes
    - Click Count (0)
  2. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  3. 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: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.4K bytes
    - Click Count (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.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.1K bytes
    - Click Count (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.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.8K 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: Sun Apr 05 00:10:12 GMT 2026
    - 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: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 30.5K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbFile.java

                if (t == TYPE_SHARE || t == TYPE_FILESYSTEM) {
                    final AllocInfo allocInfo = fetchAllocationInfo(th);
                    this.size = allocInfo.getCapacity();
                    this.sizeExpiration = System.currentTimeMillis() + getContext().getConfig().getAttributeCacheTimeout();
                    return allocInfo.getFree();
                }
                return 0L;
            } catch (final CIFSException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top