- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 178 for writeBytesWireFormat (1.22 sec)
-
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
byte[] buffer1 = new byte[512]; request.writeBytesWireFormat(buffer1, 0); // Update values request.setNotifyFlags(Smb2ChangeNotifyRequest.SMB2_WATCH_TREE); request.setCompletionFilter(0xFFF); // Second write byte[] buffer2 = new byte[512]; request.writeBytesWireFormat(buffer2, 0); // Then
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/ioctl/Smb2IoctlRequestTest.java
} @Test @DisplayName("Test writeBytesWireFormat without data") void testWriteBytesWireFormatWithoutData() { setupMockConfig(); Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE, TEST_FILE_ID); byte[] buffer = new byte[1024]; int written = request.writeBytesWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
// Test at position 0 int bytesWritten = request.writeBytesWireFormat(buffer, 0); assertEquals(48, bytesWritten); assertEquals(48, SMBUtil.readInt2(buffer, 0)); // Test at position 100 Arrays.fill(buffer, (byte) 0); bytesWritten = request.writeBytesWireFormat(buffer, 100); assertEquals(48, bytesWritten);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
// When & Then assertEquals(0, response.writeBytesWireFormat(dst, 0)); assertEquals(0, response.writeBytesWireFormat(dst, 25)); assertEquals(0, response.writeBytesWireFormat(dst, 50)); assertEquals(0, response.writeBytesWireFormat(dst, 75)); assertEquals(0, response.writeBytesWireFormat(dst, 99)); } @Test
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/io/Smb2WriteRequestTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java
assertEquals(26, result); } /** * Test writeBytesWireFormat method with Unicode. */ @Test void testWriteBytesWireFormat_Unicode() { smbComOpenAndX = new SmbComOpenAndX(fileName, access, 0, andx); smbComOpenAndX.useUnicode = true; // For Unicode: 1 byte (initial null in writeBytesWireFormat)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
} } @Nested @DisplayName("writeBytesWireFormat tests") class WriteBytes { @Test @DisplayName("Returns 0 with null array") void nullArray() { assertEquals(0, response.writeBytesWireFormat(null, 0)); } @ParameterizedTest @ValueSource(ints = { 0, 7 })
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
} } @Nested @DisplayName("WriteBytesWireFormat Tests") class WriteBytesWireFormatTests { @Test @DisplayName("Should always return 0 for writeBytesWireFormat") void testWriteBytesWireFormat() { byte[] buffer = new byte[1024]; int result = response.writeBytesWireFormat(buffer, 0); assertEquals(0, result); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
int dstIndex = 0; // When int result = smbComTreeDisconnect.writeBytesWireFormat(dst, dstIndex); // Then assertEquals(0, result); } /** * Test writeBytesWireFormat with various buffer sizes */ @Test @DisplayName("Test writeBytesWireFormat with different buffer sizes") public void testWriteBytesWireFormatWithDifferentBufferSizes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
// Test at position 0 int bytesWritten = request.writeBytesWireFormat(buffer, 0); assertEquals(49, bytesWritten); assertEquals(2048, SMBUtil.readInt4(buffer, 4)); // Test at position 100 Arrays.fill(buffer, (byte) 0); bytesWritten = request.writeBytesWireFormat(buffer, 100); assertEquals(49, bytesWritten);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0)