Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for flen (0.01 sec)

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

                    int len = 0;
                    // Use appropriate string decoding based on Unicode flag
                    try {
                        if ((flags2 & FLAGS2_UNICODE) == FLAGS2_UNICODE) {
                            while (buffer[bufferIndex + len] != (byte) 0x00 || buffer[bufferIndex + len + 1] != (byte) 0x00) {
                                len += 2;
                                if (len > 256) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/http/NetworkExplorer.java

            final char[] out = new char[256];
            char ch;
            int len, p, i;
    
            if (pathInfo == null) {
                return null;
            }
            len = pathInfo.length();
    
            p = i = 0;
            while (p < len && pathInfo.charAt(p) == '/') {
                p++;
            }
            if (p == len) {
                return null;
            }
    
            /* collect server name */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            }
    
            if (isRetainPayload()) {
                this.rawPayload = new byte[len];
                System.arraycopy(dst, start, this.rawPayload, 0, len);
            }
    
            return len;
        }
    
        /**
         * Rounds up the size to 8-byte alignment.
         *
         * @param size the size to align
         * @return the aligned size
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

            }
    
            return dstIndex - start;
        }
    
        @Override
        public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
            if (len < 8) {
                throw new SMBProtocolDecodingException("Invalid compression context length: " + len);
            }
    
            int start = bufferIndex;
    
            // Read compression count
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

        protected void haveResponse(final byte[] buffer, final int start, final int len) throws SMBProtocolDecodingException {
            if (isRetainPayload()) {
                final byte[] payload = new byte[len];
                System.arraycopy(buffer, start, payload, 0, len);
                setRawPayload(payload);
            }
    
            if (!verifySignature(buffer, start, len)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            final int len = bufferIndex - start;
            this.length = len;
    
            if (isRetainPayload()) {
                final byte[] payload = new byte[len];
                System.arraycopy(buffer, 4, payload, 0, len);
                setRawPayload(payload);
            }
    
            if (!verifySignature(buffer, 4, len)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/transport/Transport.java

         * @param off the offset in the buffer to start writing
         * @param len the number of bytes to read
         * @return number of bytes read
         * @throws IOException if an I/O error occurs
         */
        public static int readn(final InputStream in, final byte[] b, final int off, final int len) throws IOException {
            int i = 0, n = -5;
    
            if (off + len > b.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                out.write(buf, off, length);
                return in.read(inB);
            }
        }
    
        @Override
        public int recv(final byte[] buf, final int off, final int len) throws IOException {
            return getInput().readDirect(buf, off, len);
    
        }
    
        @Override
        public void send(final byte[] buf, final int off, final int length) throws IOException {
            getOutput().writeDirect(buf, off, length, 1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            char ch;
            int i, j, state, len;
            char[] out;
            byte[] b = new byte[1];
    
            if (str == null) {
                return null;
            }
    
            len = str.length();
            out = new char[len];
            state = 0;
            for (i = j = 0; i < len; i++) {
                switch (state) {
                case 0:
                    ch = str.charAt(i);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top