Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for ReadString (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            byte[] buffer = new byte[testString.length() + 1];
            int len = smb.writeString(testString, buffer, 0);
            assertEquals(testString.length() + 1, len);
            String readString = smb.readString(buffer, 0);
            assertEquals(testString, readString);
        }
    
        @Test
        void testStringReadWriteUnicode() throws UnsupportedEncodingException {
            smb.useUnicode = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/dfs/Referral.java

                    if (pathOffset > 0) {
                        this.rpath = readString(buffer, start + pathOffset, len);
                    }
                    if (nodeOffset > 0) {
                        this.node = readString(buffer, start + nodeOffset, len);
                    }
                    if (altPathOffset > 0) {
                        this.altPath = readString(buffer, start + altPathOffset, len);
                    }
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/PacLogonInfo.java

                this.userName = userNameString.check(pacStream.readString());
                this.userDisplayName = userDisplayNameString.check(pacStream.readString());
                this.logonScript = logonScriptString.check(pacStream.readString());
                this.profilePath = profilePathString.check(pacStream.readString());
                this.homeDirectory = homeDirectoryString.check(pacStream.readString());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

                    bufferIndex += 2;
    
                    path = readString(buffer, start + pathOffset, len, (flags2 & FLAGS2_UNICODE) != 0);
                    if (nodeOffset > 0) {
                        node = readString(buffer, start + nodeOffset, len, (flags2 & FLAGS2_UNICODE) != 0);
                    }
                } else if (version == 1) {
                    node = readString(buffer, bufferIndex, len, (flags2 & FLAGS2_UNICODE) != 0);
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXResponse.java

            }
    
            this.nativeOs = readString(buffer, bufferIndex);
            bufferIndex += stringWireLength(this.nativeOs, bufferIndex);
            this.nativeLanMan = readString(buffer, bufferIndex, start + this.byteCount, 255, this.isUseUnicode());
            bufferIndex += stringWireLength(this.nativeLanMan, bufferIndex);
            if (!this.isExtendedSecurity()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java

            }
            nativeOs = readString(buffer, bufferIndex);
            bufferIndex += stringWireLength(nativeOs, bufferIndex);
            nativeLanMan = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
            bufferIndex += stringWireLength(nativeLanMan, bufferIndex);
            if (!extendedSecurity) {
                primaryDomain = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            int actualResumeKey = SMBUtil.readInt4(buffer, 6);
            assertEquals(newResumeKey, actualResumeKey);
    
            // Check filename is updated (it's at the end after flags)
            String actualFilename = readString(buffer, 12, written - 12);
            assertEquals(newFilename, actualFilename);
        }
    
        @Test
        void testWriteSetupWireFormat() {
            // Test setup wire format writing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            void testReadStringUnicode() {
                testBlock.setUseUnicode(true);
                byte[] buffer = Strings.getUNIBytes("Test\0");
    
                String result = testBlock.readString(buffer, 0);
    
                assertEquals("Test", result);
            }
    
            @Test
            @DisplayName("Test read string without Unicode")
            void testReadStringNonUnicode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NetShareEnumResponse.java

                e.netName = readString(buffer, bufferIndex, 13, false);
                bufferIndex += 14;
                e.type = readInt2(buffer, bufferIndex);
                bufferIndex += 2;
                int off = readInt4(buffer, bufferIndex);
                bufferIndex += 4;
                off = (off & 0xFFFF) - converter;
                off = start + off;
                e.remark = readString(buffer, off, 128, false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                /* With NT, the shortName is in Unicode regardless of what is negotiated.
                 */
    
                //      e.shortName = readString( buffer, bufferIndex + 70, e.shortNameLength );
                e.filename = readString(buffer, bufferIndex + 94, e.fileNameLength);
    
                /* lastNameOffset ends up pointing to either to
                 * the exact location of the filename(e.g. Win98)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top