- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for largeRead (0.05 sec)
-
src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java
Smb2ReadRequest largeRead = mock(Smb2ReadRequest.class); when(largeRead.getReadLength()).thenReturn(2 * 1024 * 1024); // 2MB when(mockChannelManager.getHealthyChannels()).thenReturn(Arrays.asList(channel1, channel2)); ChannelInfo selected = loadBalancer.selectChannel(largeRead); // Should prefer higher bandwidth channel for large transfers
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/FileOperatorTest.kt
assertThat(bufferA.readUtf8()).isEqualTo("You shouldn't use my name.\n") operatorB.read(36, bufferB, 33) assertThat(bufferB.readUtf8()).isEqualTo("Dodgson, we've got Dodgson here!\n") } @Test fun largeRead() { val data = randomByteString(1000000) write(data) val operator = FileOperator( randomAccessFile!!.getChannel(), ) val buffer = Buffer()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
// Large transfer should prefer high-bandwidth channel Smb2ReadRequest largeRead = new Smb2ReadRequest(); largeRead.setLength(10485760); // 10MB ChannelInfo selected = balancer.selectChannel(largeRead); assertEquals(channel2, selected); // Should select 10Gbps channel } @Test public void testChannelFailover() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
private SmbFileHandleImpl handle; private long fp; private int readSize, readSizeFile, openFlags, access, sharing; private byte[] tmp = new byte[1]; SmbFile file; private boolean largeReadX; private final boolean unsharedFile; private boolean smb2; /** * Creates an input stream for reading from the specified SMB URL * * @param url the SMB URL to read from
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/SmbRandomAccessFile.java
private long fp; private int openFlags, access = 0, readSize, writeSize, options = 0; private final byte[] tmp = new byte[8]; private SmbComWriteAndXResponse write_andx_resp = null; private boolean largeReadX; private final boolean unsharedFile; private SmbFileHandleImpl handle; private final int sharing; /** * Instantiate a random access file from URL *
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/test/java/jcifs/smb/SmbFileInputStreamTest.java
int res = in.readDirect(new byte[1024], 0, 256); assertEquals(-1, res); } @Test @DisplayName("LargeReadX splits count across maxCount/openTimeout") void largeReadXSetsRequestFields() throws Exception { when(mockTree.isSMB2()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0)