- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 146 for getFid (0.04 sec)
-
src/main/java/jcifs/smb/SmbRandomAccessFile.java
n = -1; } } else { final SmbComReadAndX request = new SmbComReadAndX(th.getConfig(), fh.getFid(), this.fp, r, null); if (this.largeReadX) { request.setMaxCount(r & 0xFFFF); request.setOpenTimeout(r >> 16 & 0xFFFF); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
len -= cnt; off += cnt; } else if (this.useNTSmbs) { this.reqx.setParam(fh.getFid(), this.fp, len - w, b, off, w); if ((flags & 1) != 0) { this.reqx.setParam(fh.getFid(), this.fp, len, b, off, w); this.reqx.setWriteMode(0x8); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
when(tree.isConnected()).thenReturn(true); assertTrue(h.isValid()); h.markClosed(); assertFalse(h.isValid()); } @Test @DisplayName("getFid/getFileId throw SmbException when invalid") void getters_throw_whenInvalid() { when(cfg.isTraceResourceUsage()).thenReturn(false); stubValidTree(1L, true, true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
continue; } // SMB1 path with optimization final SmbComReadAndX request = new SmbComReadAndX(th.getConfig(), fd.getFid(), this.fp, r, null); if (type == SmbConstants.TYPE_NAMED_PIPE) { // Use fixed 1024 values for named pipes request.setMinCount(1024);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
return resp.getOutputLength(); } if (this.transact) { final TransTransactNamedPipe req = new TransTransactNamedPipe(th.getConfig(), fh.getFid(), buf, off, length); final TransTransactNamedPipeResponse resp = new TransTransactNamedPipeResponse(th.getConfig(), inB);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
when(tree.isSMB2()).thenReturn(false); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(tree.hasCapability(SmbConstants.CAP_NT_SMBS)).thenReturn(true); when(handle.getFid()).thenReturn(fid); when(tree.send(any(CommonServerMessageBlockRequest.class), any(), any(), any())).thenReturn(resp); } // Ensures watch() fails fast if the underlying handle is invalid @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
} else if (dh.hasCapability(SmbConstants.CAP_NT_SMBS)) { // use the open file descriptor dh.send(new Trans2SetFileInformation(dh.getConfig(), dfd.getFid(), attrs, ctime, mtime, atime), new Trans2SetFileInformationResponse(dh.getConfig())); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
when(fh.acquire()).thenReturn(fh); lenient().when(fh.isValid()).thenReturn(true); lenient().when(fh.getTree()).thenReturn(tree); when(fh.getFid()).thenReturn(99); // Mock send to just echo the provided response instance when(tree.send(any(TransTransactNamedPipe.class), any(TransTransactNamedPipeResponse.class), eq(RequestParam.NO_RETRY)))
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
when(fh.acquire()).thenReturn(fh); when(fh.isValid()).thenReturn(true); when(fh.getTree()).thenReturn(tree); when(fh.getFileId()).thenReturn(new byte[16]); when(fh.getFid()).thenReturn(1); // build via package-private constructor to control unshared flag return new SmbRandomAccessFile(file, mode, SmbConstants.DEFAULT_SHARING, unshared); } @Test
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/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
void testTidProperty() { assertEquals(0xFFFF, testBlock.getTid()); testBlock.setTid(0x1234); assertEquals(0x1234, testBlock.getTid()); } @Test @DisplayName("Test PID property") void testPidProperty() { testBlock.setPid(0x5678); assertEquals(0x5678, testBlock.getPid()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0)