- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for setDataCount (0.05 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
@Test void testGetResponseLength() throws Exception { // Test getResponseLength method // First, set dataCount using reflection (since setDataCount is in parent class) Method setDataCountMethod = SmbComTransactionResponse.class.getDeclaredMethod("setDataCount", int.class); setDataCountMethod.setAccessible(true); setDataCountMethod.invoke(response, 256);
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/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java
void testReadDataWireFormat_emptyBuffer() throws Exception { // Test reading data from an empty buffer byte[] buffer = new byte[10]; // Set data count to test return value response.setDataCount(5); // With 0 entries, should return dataCount int result = response.readDataWireFormat(buffer, 0, 0); // Should return dataCount assertEquals(5, result); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponse.java
this.parameterOffset = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.parameterDisplacement = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; setDataCount(SMBUtil.readInt4(buffer, bufferIndex)); bufferIndex += 4; this.dataOffset = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.1K bytes - Viewed (0)