- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 277 for Unicode (0.03 sec)
-
src/test/java/jcifs/SmbConnectionTest.java
assertTrue(treeConnectCreate >= 0, "TreeConnectAndX.CreateDirectory batch limit should be non-negative"); } /** * Test that batch limit respects Unicode settings */ @Test @DisplayName("Batch limit configuration with Unicode enabled") public void testBatchLimitWithUnicodeEnabled() throws CIFSException { Properties props = new Properties();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java
// Test Unicode configuration is enabled by default assertTrue(cfg.isUseUnicode(), "Unicode should be enabled by default"); } @Test public void testAsciiConfiguration() throws Exception { Configuration asciiCfg = new OffUnicodeConfig(); assertFalse(asciiCfg.isUseUnicode(), "Unicode should be disabled in ASCII config"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
// When even alignment (offset 2), Unicode string starts immediately assertTrue(bytesWritten >= 8); // "Test" in Unicode + null terminator // First byte should be 'T' in UTF-16LE assertEquals(0x54, buffer[2] & 0xFF); } @Test @DisplayName("Test read string with odd Unicode alignment") void testReadStringUnicodeAlignment() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
} } @Nested @DisplayName("Unicode String Tests") class UnicodeStringTests { @Test @DisplayName("Should encode unicode string with null buffer correctly") void testUnicodeStringEncodeNullBuffer() throws NdrException { // Given: A unicode string with null buffer rpc.unicode_string unicodeString = new rpc.unicode_string();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileBothDirectoryInfo.java
private final Configuration config; private final boolean unicode; /** * Constructs a file both directory info. * * @param config the configuration * @param unicode whether to use unicode encoding */ public FileBothDirectoryInfo(final Configuration config, final boolean unicode) { this.config = config; this.unicode = unicode; } @Override public String getName() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
assertEquals(expectedNextEntryOffset, fileBothDirectoryInfo.getNextEntryOffset()); } @Test @DisplayName("Test decode with Unicode filename") void testDecodeWithUnicodeFilename() throws SMBProtocolDecodingException { // Prepare test data with Unicode filename String expectedFilename = "日本語ファイル.txt"; byte[] buffer = createValidBuffer(expectedFilename, "~1.TXT", true); // Decode
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java
if (useUnicode) { // should Unicode alignment be corrected for here? str = new String(src, srcIndex, len, UNI_ENCODING); } else { /* On NT without Unicode the fileNameLength * includes the '\0' whereas on win98 it doesn't. I * guess most clients only support non-unicode so * they don't run into this.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
assertEquals((byte) 0x04, dst[secondBufferFormatIndex]); } /** * Test writeBytesWireFormat with Unicode encoding */ @Test @DisplayName("Test writeBytesWireFormat writes file names correctly in Unicode") public void testWriteBytesWireFormatUnicode() throws Exception { // Given String oldFileName = "oldFile.txt";
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmSspTest.java
// Domain (12 bytes "DOMAIN" in Unicode at offset 112) message[28] = 12; // Length message[29] = 0; message[30] = 12; // Max Length message[31] = 0; message[32] = 112; // Offset message[33] = 0; message[34] = 0; message[35] = 0; // User (8 bytes "user" in Unicode at offset 124) message[36] = 8; // LengthRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (1) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
* @param dstIndex the starting offset in the buffer * @param unicode true to use Unicode encoding, false for OEM encoding * @return the number of bytes written */ protected int writeString(final String str, final byte[] dst, int dstIndex, final boolean unicode) { final int start = dstIndex; if (unicode) { // Unicode requires word alignmentRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0)