- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for getCapacity (0.43 sec)
-
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
assertEquals(1000, info.alloc); assertEquals(500, info.free); assertEquals(100, info.sectPerAlloc); assertEquals(512, info.bytesPerSect); assertEquals(1000L * 100 * 512, info.getCapacity(), "Capacity calculation should be correct"); assertEquals(500L * 100 * 512, info.getFree(), "Free space calculation should be correct"); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/AllocInfo.java
* * @author mbechler */ public interface AllocInfo extends FileSystemInformation { /** * Gets the total capacity of the allocation. * * @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 byte getFileSystemInformationClass() { return FileSystemInformation.SMB_INFO_ALLOCATION; } @Override public long getCapacity() { return this.alloc * this.sectPerAlloc * this.bytesPerSect; } @Override public long getFree() { return this.free * this.sectPerAlloc * this.bytesPerSect; } /**
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/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
assertEquals(50, ndrBuffer.getIndex()); } @Test void testGetCapacity() { assertEquals(buffer.length, ndrBuffer.getCapacity()); NdrBuffer offsetBuffer = new NdrBuffer(buffer, 100); assertEquals(buffer.length - 100, offsetBuffer.getCapacity()); } @Test void testGetTailSpace() { ndrBuffer.setIndex(100);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java
class SmbInfoAllocation implements AllocInfo { long alloc; // Also handles SmbQueryFSSizeInfo long free; int sectPerAlloc; int bytesPerSect; @Override public long getCapacity() { return alloc * sectPerAlloc * bytesPerSect; } @Override public long getFree() { return free * sectPerAlloc * bytesPerSect; } @Override
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/dcerpc/ndr/NdrBuffer.java
public void setIndex(final int index) { this.index = index; } /** * Returns the capacity of the buffer. * * @return the buffer capacity */ public int getCapacity() { return buf.length - start; } /** * Returns the available space at the tail of the buffer. * * @return the available tail space */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
public void setIndex(final int index) { this.index = index; } /** * Returns the capacity of the buffer. * * @return the buffer capacity */ public int getCapacity() { return this.buf.length - this.start; } /** * Returns the available space at the tail of the buffer. * * @return the available tail space */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
response = new Trans2QueryFSInformationResponse(level); send(new Trans2QueryFSInformation(level), response); size = response.info.getCapacity(); } else if (getUncPath0().length() > 1 && type != TYPE_NAMED_PIPE) { final Info info = queryPath(getUncPath0(), Trans2QueryPathInformationResponse.SMB_QUERY_FILE_STANDARD_INFO);
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
} try (SmbTreeHandleImpl th = ensureTreeConnected()) { final int t = getType(); if (t == TYPE_SHARE) { this.size = fetchAllocationInfo(th).getCapacity(); } else if (!this.fileLocator.isRoot() && t != TYPE_NAMED_PIPE) { queryPath(th, this.fileLocator.getUNCPath(), FileInformation.FILE_STANDARD_INFO); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)