- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 81 for bytesRead (0.05 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field // When int bytesRead = response.readBytesWireFormat(buffer, bufferIndex); // Then assertEquals(4, bytesRead); } @Test @DisplayName("Should read from various buffer positions")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
// When int bytesRead = testResponse.readBytesWireFormat(buffer, bufferIndex); // Then assertTrue(testResponse.errorResponseCalled); assertEquals(8, bytesRead); // Error response is 8 bytes } @DisplayName("Should throw exception for invalid structure size") @ParameterizedTestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java
int bytesRead = response.readParameterWordsWireFormat(buffer, 0); // The count should be read from the buffer. assertEquals(10L, response.count); // The method should return the number of bytes read. assertEquals(8, bytesRead); } /** * Test the writeParameterWordsWireFormat method. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
Trans2QueryPathInformation trans = new Trans2QueryPathInformation("anyfile.txt", 0); byte[] buffer = new byte[10]; // When int bytesRead = trans.readSetupWireFormat(buffer, 0, 10); // Then assertEquals(0, bytesRead, "Should read 0 bytes."); } /** * Tests the readParametersWireFormat method. */ @Test void testReadParametersWireFormat() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field // When int bytesRead = response.readBytesWireFormat(buffer, bufferIndex); // Then assertEquals(4, bytesRead); } @Test @DisplayName("Should throw exception for invalid structure size")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
byte[] buffer = new byte[10]; // When int bytesRead = transCallNamedPipe.readSetupWireFormat(buffer, 0, buffer.length); // Then assertEquals(0, bytesRead); } @Test @DisplayName("Test writeParametersWireFormat returns 0") void testWriteParametersWireFormat() { // Given
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/MessageInflater.kt
val totalBytesToRead = inflater.bytesRead + deflatedBytes.size // We cannot read all, as the source does not close. // Instead, we ensure that all bytes from source have been processed by inflater. do { inflaterSource.readOrInflate(buffer, Long.MAX_VALUE) } while (inflater.bytesRead < totalBytesToRead && !inflater.finished())Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Sep 21 06:26:07 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
bufferIndex += 4; // setupCount = 0 (1 byte + 1 padding byte) buffer[bufferIndex] = 0; buffer[bufferIndex + 1] = 0; // padding byte int bytesRead = response.readParameterWordsWireFormat(buffer, 0); assertEquals(37, bytesRead); // 3 reserved + 32 (8*4) + 2 for setupCount assertEquals(10, response.totalParameterCount);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
byte[] buffer = new byte[10]; byte[] data = { 1, 2, 3, 4, 5 }; ByteArrayInputStream bais = new ByteArrayInputStream(data); int bytesRead = SessionServicePacket.readn(bais, buffer, 0, 5); assertEquals(5, bytesRead); for (int i = 0; i < 5; i++) { assertEquals(data[i], buffer[i]); } } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
try (InputStream stream = cache.getInputStream()) { byte[] buffer = new byte[1024]; int bytesRead = stream.read(buffer); byte[] result = new byte[bytesRead]; System.arraycopy(buffer, 0, result, 0, bytesRead); assertArrayEquals(originalData, result); } } @Test
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 11.2K bytes - Viewed (0)