- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 105 for writeParametersWireFormat (0.36 sec)
-
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
assertEquals(0, result); } /** * Test the writeParametersWireFormat method for NET_SERVER_ENUM2. */ @Test void testWriteParametersWireFormat_Enum2() throws UnsupportedEncodingException { byte[] dst = new byte[100]; int bytesWritten = netServerEnum2.writeParametersWireFormat(dst, 0); // Verify subcommand
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertEquals(0, result); } @Test @DisplayName("Test writeParametersWireFormat returns 0") void testWriteParametersWireFormat() { // Test that writeParametersWireFormat always returns 0 byte[] buffer = new byte[100]; int result = response.writeParametersWireFormat(buffer, 0); assertEquals(0, result); // Test with different offset
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/trans2/Trans2FindNext2Test.java
trans2FindNext2.reset(newResumeKey, newFilename); // Verify by writing parameters and checking the buffer byte[] buffer = new byte[256]; int written = trans2FindNext2.writeParametersWireFormat(buffer, 0); // Check resume key at offset 6 (after sid and maxItems and informationLevel) int actualResumeKey = SMBUtil.readInt4(buffer, 6); assertEquals(newResumeKey, actualResumeKey);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java
} /** * Tests the writeParametersWireFormat method. */ @Test void testWriteParametersWireFormat() { byte[] dst = new byte[10]; int result = response.writeParametersWireFormat(dst, 0); assertEquals(0, result, "writeParametersWireFormat should always return 0."); } /** * Tests the writeDataWireFormat method.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL); byte[] buffer = new byte[512]; int written = trans2QueryPathInfo.writeParametersWireFormat(buffer, 0); // Check information level (first 2 bytes) int actualInfoLevel = SMBUtil.readInt2(buffer, 0); assertEquals(0x0101, actualInfoLevel); // FILE_BASIC_INFO maps to 0x0101
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
@Test @DisplayName("Should return 0 for writeParametersWireFormat") void testWriteParametersWireFormat() { byte[] dst = new byte[100]; int result = response.writeParametersWireFormat(dst, 0); assertEquals(0, result); } @Test @DisplayName("Should return 0 for writeParametersWireFormat with offset")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, basicInfo); byte[] buffer = new byte[512]; // Test writeParametersWireFormat int paramWritten = trans2SetFileInfo.writeParametersWireFormat(buffer, 0); assertEquals(6, paramWritten); // Check information level for FILE_BASIC_INFO int actualInfoLevel = SMBUtil.readInt2(buffer, 2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
int dstIndex = 0; // When int bytesWritten = trans2GetDfsReferral.writeParametersWireFormat(dst, dstIndex); // Then assertTrue(bytesWritten > 0); // The actual encoding depends on DfsReferralRequestBuffer implementation } @Test @DisplayName("writeParametersWireFormat with mock request buffer") void testWriteParametersWireFormatWithMock() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java
assertEquals(2, setupBytes, "writeSetupWireFormat should return expected bytes"); int paramBytes = transaction.writeParametersWireFormat(buffer, 0); assertEquals(20, paramBytes, "writeParametersWireFormat should return expected bytes"); int dataBytes = transaction.writeDataWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
assertEquals((byte) 0x00, dst[1], "The second byte should be 0."); } /** * Tests the writeParametersWireFormat method. */ @Test void testWriteParametersWireFormat() { // Given String filename = "a\\test\\path.txt"; int informationLevel = 0x0102;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)