- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 79 for bytesRead (0.16 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
fun bodyComplete( bytesRead: Long = -1L, responseDone: Boolean = false, requestDone: Boolean = false, e: IOException?, ): IOException? { if (e != null) { trackFailure(e) } if (requestDone) { if (e != null) { eventListener.requestFailed(call, e) } else { eventListener.requestBodyEnd(call, bytesRead) } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/TreeConnectResponseTest.java
buffer[14] = 0x1F; buffer[15] = 0x00; // When int bytesRead = (int) invokeMethod(response, "readBytesWireFormat", new Class[] { byte[].class, int.class }, buffer, 0); // Then assertEquals(16, bytesRead, "Should read 16 bytes");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportTest.java
byte[] data = "Hello World Test".getBytes(); InputStream is = new ByteArrayInputStream(data); byte[] buffer = new byte[20]; int bytesRead = Transport.readn(is, buffer, 0, 5); assertEquals(5, bytesRead); assertArrayEquals("Hello".getBytes(), java.util.Arrays.copyOfRange(buffer, 0, 5)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
paramWordsRead = 10; return paramWordsRead; } @Override int readBytesWireFormat(byte[] buffer, int bufferIndex) { bytesRead = 20; return bytesRead; } // Allow tests to control batching limit @Override int getBatchLimit(byte command) { return customBatchLimit != null ? customBatchLimit : 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
void testReadBytesWireFormat() { // Given byte[] buffer = new byte[256]; int offset = 10; // When int bytesRead = request.readBytesWireFormat(buffer, offset); // Then assertEquals(0, bytesRead); } @DisplayName("Should handle different completion filter combinations") @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
byte[] buffer = new byte[100]; int offset = 10; // When int bytesRead = request.readBytesWireFormat(buffer, offset); // Then assertEquals(0, bytesRead, "Cancel requests do not read response data"); } @Test @DisplayName("Test multiple property settings") void testMultiplePropertySettings() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
new Trans2QueryPathInformationResponse(Trans2QueryPathInformationResponse.SMB_QUERY_FILE_BASIC_INFO) { }; int bytesRead = trans.readDataWireFormat(buffer, 0, buffer.length); assertEquals(buffer.length, bytesRead); // Access private field 'info' java.lang.reflect.Field infoField = Trans2QueryPathInformationResponse.class.getDeclaredField("info");
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/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
buffer[bufferIndex++] = (byte) 0x80; buffer[bufferIndex++] = (byte) 0xFF; // encryptionKeyLength buffer[bufferIndex++] = 8; int bytesRead = response.readParameterWordsWireFormat(buffer, 0); assertEquals(34, bytesRead); assertEquals(5, response.getDialectIndex()); assertTrue(response.getServerData().encryptedPasswords);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
throw new SMBProtocolDecodingException("Test exception"); } return bytesRead; } public void setBytesWritten(int bytes) { this.bytesWritten = bytes; } public void setBytesRead(int bytes) { this.bytesRead = bytes; } public void setThrowOnRead(boolean throwOnRead) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
request = new Smb2NegotiateRequest(mockConfig, 0); byte[] buffer = new byte[256]; // When int bytesRead = request.readBytesWireFormat(buffer, 0); // Then - This is a request, so it doesn't read from wire assertEquals(0, bytesRead); } @ParameterizedTest @DisplayName("Should generate correct dialects for version ranges")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0)