Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 82 for BytesRead (0.05 seconds)

  1. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertNotNull(stream);
                byte[] buffer = new byte[1024];
                int bytesRead = stream.read(buffer);
                assertEquals(data.length, bytesRead);
                assertArrayEquals(data, Arrays.copyOf(buffer, bytesRead));
            }
        }
    
        @Test
        public void testGetContentAsStreamWithoutCache() {
            CurlResponse response = new CurlResponse();
    Created: Sat Dec 20 09:13:53 GMT 2025
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            buffer[5] = 0x00;
            // eaErrorOffset = 3
            writeInt2(3, buffer, 6);
            // lastNameOffset = 4
            writeInt2(4, buffer, 8);
    
            int bytesRead = response.readParametersWireFormat(buffer, 0, buffer.length);
            assertEquals(10, bytesRead);
            assertEquals(1, response.sid);
            assertEquals(2, response.numEntries);
            assertTrue(response.isEndOfSearch);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

            bufferIndex += 2;
            // totalAvailableEntries (2 bytes)
            SMBUtil.writeInt2(5, buffer, bufferIndex);
    
            int bytesRead = response.readParametersWireFormat(buffer, 0, 8);
    
            assertEquals(8, bytesRead);
            assertEquals(0, getStatus(response));
            assertEquals(100, getConverter(response));
            assertEquals(3, getNumEntries(response));
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, "test");
            byte[] buffer = new byte[10];
    
            // When
            int bytesRead = trans2GetDfsReferral.readSetupWireFormat(buffer, 0, 10);
    
            // Then
            assertEquals(0, bytesRead);
        }
    
        @Test
        @DisplayName("readParametersWireFormat should always return 0")
        void testReadParametersWireFormat() {
            // Given
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            ServerMessageBlock.writeInt4(1024, buffer, 6);
    
            response.wordCount = 10; // Must be non-zero to read
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
            // Should read 20 bytes as per implementation
            assertEquals(20, bytesRead);
            assertEquals(0x0010, response.getAttributes());
            // getLastWriteTime returns lastWriteTime (from readUTime) + serverTimeZoneOffset
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            int startIndex = 5;
            original.encode(buffer, startIndex);
    
            // Now decode into a new instance
            int bytesRead = fileBasicInfo.decode(buffer, startIndex, 36);
    
            // Verify bytes read
            assertEquals(36, bytesRead);
    
            // Verify decoded values match original
            assertEquals(TEST_CREATE_TIME, fileBasicInfo.getCreateTime());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            SMBUtil.writeInt4(fileSize, buffer, bufferIndex + 6);
    
            // Read the data
            int bytesRead = response.readParameterWordsWireFormat(buffer, bufferIndex);
    
            // Verify results
            assertEquals(20, bytesRead);
            assertEquals(fileAttributes, response.getAttributes());
            assertEquals(fileSize, response.getSize());
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            SessionRequestPacket readPacket = new SessionRequestPacket(mockConfig);
            readPacket.length = written;
    
            int bytesRead = readPacket.readTrailerWireFormat(bais, buffer, 0);
    
            assertEquals(written, bytesRead);
        }
    
        @Test
        @DisplayName("readTrailerWireFormat should throw IOException on incomplete data")
        void testReadTrailerWireFormatIncompleteData() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            System.arraycopy(fileNameBytes, 0, buffer, notifyOffset + 12, fileNameBytes.length);
    
            // When
            int bytesRead = response.readBytesWireFormat(buffer, offset);
    
            // Then
            assertTrue(bytesRead > 0);
            List<FileNotifyInformation> notifications = response.getNotifyInformation();
            assertEquals(1, notifications.size());
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

            call.eventListener.requestFailed(call, e)
          } else {
            call.eventListener.requestBodyEnd(call, bytesRead)
          }
        }
        if (responseDone) {
          if (e != null) {
            call.eventListener.responseFailed(call, e)
          } else {
            call.eventListener.responseBodyEnd(call, bytesRead)
          }
        }
        return call.messageDone(
          exchange = this,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 10.5K bytes
    - Click Count (0)
Back to Top