- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 212 for terminator (0.07 sec)
-
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
buffer = new DfsReferralRequestBuffer(path, maxReferralLevel); assertNotNull(buffer); assertEquals(4, buffer.size()); // 2 bytes for level + 2 bytes for null terminator } @Test @DisplayName("Should create buffer with null path") void testConstructorWithNullPath() { String path = null; int maxReferralLevel = 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java
response.useUnicode = false; String expected = "test"; // Simulate OEM encoding with a null terminator byte[] src = (expected + "\0").getBytes(StandardCharsets.UTF_8); String result = response.readString(src, 0, src.length); // The method should remove the null terminator assertEquals(expected, result.substring(0, expected.length())); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
response.getServerData().scapabilities = 0; response.getServerData().encryptionKeyLength = 8; // Domain name in OEM encoding (ASCII) with null terminator byte[] domainBytes = "DOMAIN\0".getBytes("US-ASCII"); // Use reflection to set protected byteCount field int byteCountValue = 8 + domainBytes.length; setByteCount(response, byteCountValue);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
buffer[10 + stringBytes.length] = 0; // null terminator // Use reflection to call protected readString method Method readStringMethod = getReadStringMethod(); String result = (String) readStringMethod.invoke(response, buffer, 10, 128, false); assertEquals(testString, result); } @Test @DisplayName("Test readString with null terminator in middle")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
assertEquals((byte) 0x04, dst[0]); // First buffer format byte // Find the second buffer format byte int secondBufferFormatIndex = oldFileName.length() + 2; // 1 for first 0x04, 1 for null terminator assertEquals((byte) 0x04, dst[secondBufferFormatIndex]); } /** * Test writeBytesWireFormat with Unicode encoding */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
assertEquals(0x12, buffer[1] & 0xFF); // Check that the path is written after the referral level // The path should be written starting at index 2 // writeString adds null terminator assertTrue(len > 2, "Length should include path"); String writtenPath = extractStringFromBuffer(buffer, 2, len - 2); assertTrue(writtenPath.contains("abc"), "Path should be written to buffer"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
cmd/streaming-v4-unsigned.go
if cr.debug { fmt.Println("trailer returned:", err) } if err != nil { cr.err = err return 0, err } } cr.err = io.EOF return n, cr.err } // read final terminator. err = mustRead('\r', '\n') if err != nil && err != io.EOF { cr.err = err return n, cr.err } cr.offset = copy(buf, cr.buffer) n += cr.offset return n, err }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Apr 03 14:55:52 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
// filename bytes, then null terminator byte[] nameBytes = name.getBytes(); for (int i = 0; i < nameBytes.length; i++) { assertEquals(nameBytes[i], dst[12 + i], "Filename byte mismatch at index " + i); } assertEquals((byte) 0x00, dst[12 + nameBytes.length], "Filename must be null-terminated"); } /**
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/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
smb.useUnicode = false; byte[] buffer = new byte[6]; System.arraycopy("short".getBytes(), 0, buffer, 0, 5); buffer[5] = 0; // Null terminator String result = smb.readString(buffer, 0, 5, false); assertEquals("short", result); } @Test void testReadStringWithMaxLengthExceeded() { smb.useUnicode = false;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
return ""; } // Read wide string data (UTF-16LE) int byteCount = (actualCount - 1) * 2; // Exclude null terminator byte[] wideBytes = new byte[byteCount]; buf.readOctetArray(wideBytes, 0, byteCount); // Skip null terminator buf.dec_ndr_short(); // Skip padding int padding = (4 - ((byteCount + 2) % 4)) % 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 16.4K bytes - Viewed (0)