- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for setReadLength (0.05 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
void testSetReadLength() { assertDoesNotThrow(() -> request.setReadLength(0)); assertDoesNotThrow(() -> request.setReadLength(1024)); assertDoesNotThrow(() -> request.setReadLength(65536)); assertDoesNotThrow(() -> request.setReadLength(Integer.MAX_VALUE)); } @Test @DisplayName("Should set offset correctly")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
request.setOffset(type == SmbConstants.TYPE_NAMED_PIPE ? 0 : this.fp); request.setReadLength(r); // Optimization: Set remaining bytes hint for server read-ahead request.setRemainingBytes(Math.min(len - r, 1024 * 1024)); // Hint up to 1MB for read-ahead
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/internal/smb2/io/Smb2ReadRequest.java
this.readFlags = readFlags; } /** * Sets the number of bytes to read * * @param readLength * the readLength to set */ public void setReadLength(final int readLength) { this.readLength = readLength; } /** * Sets the file offset from which to start reading * * @param offset * the offset to set
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
if (th.isSMB2()) { final Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fh.getFileId(), b, off); request.setOffset(this.fp); request.setReadLength(r); request.setRemainingBytes(len - off); try { final Smb2ReadResponse resp = th.send(request, RequestParam.NO_RETRY);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0)