- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 84 for getSize (0.06 sec)
-
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
Mockito.when(mock.getLastAccessTime()).thenReturn(17L); Mockito.when(mock.getSize()).thenReturn(19L); // Act: invoke each method once int attributes = mock.getAttributes(); long c = mock.getCreateTime(); long w = mock.getLastWriteTime(); long a = mock.getLastAccessTime(); long s = mock.getSize(); // Assert: values and interactions
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComOpenAndXResponse.java
*/ public final int getDataSize() { return this.fileDataSize; } /** * {@inheritDoc} * * @see jcifs.internal.SmbBasicFileInfo#getSize() */ @Override public long getSize() { return getDataSize(); } /** * Gets the granted access rights. * * @return the grantedAccess */ public final int getGrantedAccess() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
assertEquals(serverTimeZoneOffset, response.getLastWriteTime()); } /** * Test of getSize method, of class SmbComQueryInformationResponse. */ @Test public void testGetSize() { // Initially, fileSize should be 0. assertEquals(0, response.getSize()); } /** * Test of writeParameterWordsWireFormat method, of class SmbComQueryInformationResponse. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java
@Test public void testGetSendRegion() throws Exception { RdmaMemoryRegion region = bufferManager.getSendRegion(1024); assertNotNull(region, "Send region should not be null"); assertTrue(region.getSize() >= 1024, "Region should be at least requested size"); assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
assertEquals(0xABCD, resp.getAttributes()); assertEquals(1630000001000L, resp.getCreateTime()); assertEquals(1630000001000L, resp.getLastWriteTime()); assertEquals(2048, resp.getSize()); // toString() uses lastWriteTime directly without offset assertTrue(resp.toString().contains(new Date(1630000000000L).toString())); } // Buffer helpers to build SMB basic file info wire format.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java
return createTime; } @Override public long getLastWriteTime() { return lastWriteTime; } @Override public long getSize() { return 0L; } @Override public String toString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CloseResponse.java
*/ public String getFileName() { return this.fileName; } /** * {@inheritDoc} * * @see jcifs.internal.SmbBasicFileInfo#getSize() */ @Override public long getSize() { return getEndOfFile(); } /** * Get the file attributes * * @return the fileAttributes */ public int getFileAttributes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Info.java
*/ package jcifs.smb1.smb1; interface Info { int getAttributes(); long getCreateTime(); long getLastWriteTime(); long getSize();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 995 bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndXResponse.java
*/ public final long getEndOfFile() { return this.endOfFile; } /** * {@inheritDoc} * * @see jcifs.internal.SmbBasicFileInfo#getSize() */ @Override public long getSize() { return getEndOfFile(); } @Override protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { return 0; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/SmbBasicFileInfo.java
* * @return file last access time */ long getLastAccessTime(); /** * Gets the file size in bytes. * * @return file size */ long getSize();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0)