Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for fromUNIBytes (0.13 sec)

  1. src/main/java/jcifs/internal/fscc/FileBothDirectoryInfo.java

            this.eaSize = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            int shortNameLength = buffer[ bufferIndex ] & 0xFF;
            bufferIndex += 2;
    
            this.shortName = Strings.fromUNIBytes(buffer, bufferIndex, shortNameLength);
            bufferIndex += 24;
    
            String str;
            if ( this.unicode ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImpl.java

            bufferIndex += 4;
    
            this.fileNameLength = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            this.fileName = Strings.fromUNIBytes(buffer, bufferIndex, this.fileNameLength);
            bufferIndex += this.fileNameLength;
            return bufferIndex - start;
        }
    
    
        @Override
        public String toString () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 17 08:55:32 UTC 2018
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/Strings.java

            }
        }
    
    
        /**
         * @param src
         * @param srcIndex
         * @param len
         * @return decoded string
         */
        public static String fromUNIBytes ( byte[] src, int srcIndex, int len ) {
            return new String(src, srcIndex, len, UNI_ENCODING);
        }
    
    
        /**
         * @param buffer
         * @param bufferIndex
         * @param maxLen
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dfs/Referral.java

            // this is not absolutely correct, but we assume that the header is aligned
            if ( ( bufferIndex % 2 ) != 0 ) {
                bufferIndex++;
            }
            return Strings.fromUNIBytes(buffer, bufferIndex, Strings.findUNITermination(buffer, bufferIndex, len));
        }
    
    
        @Override
        public String toString () {
            return new String(
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

                len--;
                int size = len * 2;
                if ( size < 0 || size > 0xFFFF )
                    throw new NdrException(NdrException.INVALID_CONFORMANCE);
                val = Strings.fromUNIBytes(this.buf, i, size);
                i += size + 2;
            }
            advance(i - this.index);
            return val;
        }
    
    
        private int getDceReferent ( Object obj ) {
            Entry e;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                        len = Strings.findUNITermination(buffer, bufferIndex, 256);
                        this.server.oemDomainName = Strings.fromUNIBytes(buffer, bufferIndex, len);
                    }
                    else {
                        len = Strings.findTermination(buffer, bufferIndex, 256);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 15.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            if ( unicode ) {
                // Unicode requires word alignment
                if ( ( ( srcIndex - this.headerStart ) % 2 ) != 0 ) {
                    srcIndex++;
                }
                return Strings.fromUNIBytes(src, srcIndex, Strings.findUNITermination(src, srcIndex, maxLen));
            }
    
            return Strings.fromOEMBytes(src, srcIndex, Strings.findTermination(src, srcIndex, maxLen), getConfig());
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
Back to top