- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 81 for bytesRead (0.04 sec)
-
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
bytesRead = 20; return bytesRead; } public void setParamWordsRead(int value) { this.paramWordsRead = value; } public void setBytesRead(int value) { this.bytesRead = value; } public int getWordCount() { return wordCount;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
writeInt4(1000, buffer, 8); // alloc writeInt4(500, buffer, 12); // free writeInt2(512, buffer, 16); // bytesPerSect int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertEquals(20, bytesRead, "Should read 20 bytes"); assertNotNull(response.info, "Info object should not be null");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int bytesRead; while ((bytesRead = inflaterStream.read(buffer)) != -1) { baos.write(buffer, 0, bytesRead); } inflaterStream.close(); return baos.toByteArray(); } catch (IOException e) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
byte[] buffer = new byte[16]; SMBUtil.writeInt8(expectedValue, buffer, 0); // Decode int bytesRead = fileInfo.decode(buffer, 0, buffer.length); // Verify bytes read assertEquals(8, bytesRead); // Verify decoded value through toString assertTrue(fileInfo.toString().contains("endOfFile=" + expectedValue)); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
long startTime = System.nanoTime(); int bytesRead = rdmaConnection.read(buffer, remoteAddress, remoteKey, length); long duration = System.nanoTime() - startTime; statistics.recordReadSuccess(bytesRead, duration); return bytesRead; } catch (IOException e) { statistics.recordReadError(); throw e;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
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);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K 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: 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/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
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0)