- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 52 for getFree (0.04 sec)
-
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
assertEquals(20, bytesDecoded); assertEquals(8L * 4096L * 512L, smbInfoAllocation.getCapacity()); assertEquals(8L * 2048L * 512L, smbInfoAllocation.getFree()); } @Test @DisplayName("Should calculate capacity correctly") void testCapacityCalculation() throws SMBProtocolDecodingException { byte[] buffer = new byte[24];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/AllocInfo.java
* * @return total capacity */ long getCapacity(); /** * Gets the free space available. * * @return free space */ long getFree();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java
} @Override public long getCapacity() { return this.alloc * this.sectPerAlloc * this.bytesPerSect; } @Override public long getFree() { return this.free * this.sectPerAlloc * this.bytesPerSect; } /** * {@inheritDoc} * * @see jcifs.Decodable#decode(byte[], int, int) */ @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java
int bytesPerSect; @Override public long getCapacity() { return alloc * sectPerAlloc * bytesPerSect; } @Override public long getFree() { return free * sectPerAlloc * bytesPerSect; } @Override public String toString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
if (type == TYPE_SHARE) { size = response.info.getCapacity(); sizeExpiration = System.currentTimeMillis() + attrExpirationPeriod; } return response.info.getFree(); } /** * Creates a directory with the path specified by this * <code>SmbFile</code>. For this method to be successful, the target * must not already exist. This method will fail when
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
this.size = allocInfo.getCapacity(); this.sizeExpiration = System.currentTimeMillis() + getContext().getConfig().getAttributeCacheTimeout(); return allocInfo.getFree(); } return 0L; } catch (final CIFSException e) { throw SmbException.wrap(e); } } /** * @return
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionResult.java
} else if (requestType.equals(MetadataResolutionRequestTypeEnum.versionedGraph)) { return new MetadataGraph(getTree(), true, false); } else if (requestType.equals(MetadataResolutionRequestTypeEnum.scopedGraph)) { return new MetadataGraph(getTree(), true, true); } return null; } // ----------------------------------------------------------------------------
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
} /** * Test that getTree() returns the correct SmbTreeHandle. */ @Test void testGetTree() { when(smbFileHandle.getTree()).thenReturn(smbTreeHandle); SmbTreeHandle result = smbFileHandle.getTree(); assertEquals(smbTreeHandle, result, "getTree should return the mocked SmbTreeHandle."); verify(smbFileHandle, times(1)).getTree(); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
SmbPipeInputStream stream = newStreamWithMinimalStubs(true); // Arrange mocks for available() when(handle.ensureOpen()).thenReturn(fd); when(fd.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(config); when(config.getTransactionBufferSize()).thenReturn(65535);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)