- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 426 for 0x00 (0.02 sec)
-
src/test/java/jcifs/internal/util/SMBUtilTest.java
assertEquals((byte) 0x00, dst[8]); assertEquals((byte) 0x00, dst[9]); assertEquals((byte) 0x00, dst[10]); assertEquals((byte) 0x00, dst[11]); } @Test void testReadInt2() { byte[] src = new byte[] { (byte) 0x34, (byte) 0x12, // 0x1234 (byte) 0xFF, (byte) 0xFF, // 0xFFFF (byte) 0x00, (byte) 0x00, // 0x0000
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
private static Stream<Arguments> provideNamesForWriteTest() { return Stream.of(Arguments.of("SERVER", 0x20, "CLIENT", 0x00), Arguments.of("WORKSTATION", 0x00, "USER", 0x03), Arguments.of("DOMAIN", 0x1B, "BROWSER", 0x1D), Arguments.of("A", 0x20, "B", 0x00), Arguments.of("VERYLONGNAMETEST", 0x20, "ANOTHERLONGNAME", 0x00)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
assertEquals((byte) 0x04, dst[4]); assertEquals((byte) 0x01, dst[5]); // resumeKey (4 bytes, LE) assertEquals((byte) 0xEF, dst[6]); assertEquals((byte) 0xCD, dst[7]); assertEquals((byte) 0xAB, dst[8]); assertEquals((byte) 0x89, dst[9]); // flags (2 bytes, LE) -> 0x0000 assertEquals((byte) 0x00, dst[10]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformation.java
SMBUtil.writeInt2(mapInformationLevel(this.informationLevel), dst, dstIndex); dstIndex += 2; dst[dstIndex] = (byte) 0x00; dstIndex++; dst[dstIndex++] = (byte) 0x00; dst[dstIndex++] = (byte) 0x00; dst[dstIndex++] = (byte) 0x00; dstIndex += writeString(this.path, dst, dstIndex); return dstIndex - start; } /** * @param informationLevel2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
*/ public static int findUNITermination(final byte[] buffer, final int bufferIndex, final int maxLen) { int len = 0; while (buffer[bufferIndex + len] != (byte) 0x00 || buffer[bufferIndex + len + 1] != (byte) 0x00) { len += 2; if (len > maxLen) { if (log.isDebugEnabled()) { log.warn("Failed to find string termination with max length " + maxLen);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
assertEquals(0x02, Trans2FindFirst2.FLAGS_CLOSE_IF_END_REACHED); assertEquals(0x04, Trans2FindFirst2.FLAGS_RETURN_RESUME_KEYS); assertEquals(0x08, Trans2FindFirst2.FLAGS_RESUME_FROM_PREVIOUS_END); assertEquals(0x10, Trans2FindFirst2.FLAGS_FIND_WITH_BACKUP_INTENT); // Test information level constants assertEquals(1, Trans2FindFirst2.SMB_INFO_STANDARD);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
assertEquals(2, trans.maxParameterCount, "The maxParameterCount should be 2."); assertEquals(40, trans.maxDataCount, "The maxDataCount should be 40."); assertEquals((byte) 0x00, trans.maxSetupCount, "The maxSetupCount should be 0."); } /** * Tests the writeSetupWireFormat method. */ @Test void testWriteSetupWireFormat() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then assertEquals(4, bytesWritten); // Expected wire format: [0x04, 0x00, 0x00, 0x00] byte[] expected = new byte[] { 0x04, 0x00, 0x00, 0x00 }; assertArrayEquals(expected, buffer); } @Test @DisplayName("Should always return 0 for readBytesWireFormat") void testReadBytesWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
// Given byte[] buffer = new byte[256]; // Write exact structure size value (4) buffer[0] = 0x04; buffer[1] = 0x00; buffer[2] = 0x00; buffer[3] = 0x00; // When int bytesRead = response.readBytesWireFormat(buffer, 0); // Then assertEquals(4, bytesRead); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0)