Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 34 for useUnicode (0.2 seconds)

  1. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

        int writeString(final String str, final byte[] dst, final int dstIndex) {
            return writeString(str, dst, dstIndex, useUnicode);
        }
    
        int writeString(final String str, final byte[] dst, int dstIndex, final boolean useUnicode) {
            final int start = dstIndex;
    
            try {
                if (useUnicode) {
                    // Unicode requires word alignment
                    if ((dstIndex - headerStart) % 2 != 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndXResponse.java

            nativeLanMan = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
            bufferIndex += stringWireLength(nativeLanMan, bufferIndex);
            if (!extendedSecurity) {
                primaryDomain = readString(buffer, bufferIndex, start + byteCount, 255, useUnicode);
                bufferIndex += stringWireLength(primaryDomain, bufferIndex);
            }
    
            return bufferIndex - start;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                        }
                    } else if (DISABLE_PLAIN_TEXT_PASSWORDS) {
                        throw new RuntimeException("Plain text passwords are disabled");
                    } else if (useUnicode) {
                        // plain text
                        final String password = auth.getPassword();
                        lmHash = new byte[0];
                        ntHash = new byte[(password.length() + 1) * 2];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SmbTransport.java

        void send(final ServerMessageBlock request, final ServerMessageBlock response) throws SmbException {
    
            connect(); /* must negotiate before we can test flags2, useUnicode, etc */
    
            request.flags2 |= flags2;
            request.useUnicode = useUnicode;
            request.response = response; /* needed by sign */
            if (request.digest == null) {
                request.digest = digest; /* for sign called in encode */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            dst[start + ANDX_RESERVED_OFFSET] = (byte) 0x00;
            andxOffset = dstIndex - headerStart;
            writeInt2(andxOffset, dst, start + ANDX_OFFSET_OFFSET);
    
            andx.useUnicode = useUnicode;
            if (andx instanceof AndXServerMessageBlock) {
    
                /*
                 * A word about communicating header info to andx smbs
                 *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                    this.useUnicode = true;
                } else {
                    this.useUnicode = false;
                    this.negotiatedFlags2 &= 0xFFFF ^ SmbConstants.FLAGS2_UNICODE;
                }
            } else {
                this.useUnicode = ctx.getConfig().isUseUnicode();
            }
    
            if (this.useUnicode) {
                log.debug("Unicode is enabled");
            } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

            }
    
            return dstIndex - start;
        }
    
        @Override
        int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            if (useUnicode) {
                dst[dstIndex] = (byte) '\0';
                dstIndex++;
            }
            dstIndex += writeString(path, dst, dstIndex);
    
            return dstIndex - start;
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            assertTrue(next.writeParamCalls > 0, "chained SMB parameter words should be written");
            assertTrue(next.writeBytesCalls > 0, "chained SMB bytes should be written");
        }
    
        @Test
        @DisplayName("decode basic AndX block with no chaining")
        void testDecodeBasicNoAndx() {
            DummyAndXBlock block = new DummyAndXBlock() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * @return the useUnicode
         */
        public final boolean isUseUnicode() {
            return this.useUnicode;
        }
    
        /**
         * Sets whether to use Unicode encoding for this message
         * @param useUnicode
         *            the useUnicode to set
         */
        public final void setUseUnicode(final boolean useUnicode) {
            this.useUnicode = useUnicode;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComRename.java

            final int start = dstIndex;
    
            dst[dstIndex] = (byte) 0x04;
            dstIndex++;
            dstIndex += writeString(oldFileName, dst, dstIndex);
            dst[dstIndex++] = (byte) 0x04;
            if (useUnicode) {
                dst[dstIndex++] = (byte) '\0';
            }
            dstIndex += writeString(newFileName, dst, dstIndex);
    
            return dstIndex - start;
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.4K bytes
    - Click Count (0)
Back to Top