Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for MaxLen (0.08 sec)

  1. src/main/java/jcifs/util/Strings.java

         * @param bufferIndex
         * @param maxLen
         * @return position of terminating null bytes
         */
        public static int findUNITermination ( byte[] buffer, int bufferIndex, int maxLen ) {
            int len = 0;
            while ( buffer[ bufferIndex + len ] != (byte) 0x00 || buffer[ bufferIndex + len + 1 ] != (byte) 0x00 ) {
                len += 2;
                if ( len > maxLen ) {
                    if ( log.isDebugEnabled() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                                                src[srcIndex + len + 1] != (byte)0x00 ) {
                        len += 2;
                        if( len > maxLen ) {
    if( log.level > 0 )
    Hexdump.hexdump( System.err, src, srcIndex, maxLen < 128 ? maxLen + 8 : 128 );
                            throw new RuntimeException( "zero termination not found" );
                        }
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 21K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/NetworkExplorer.java

                            break;
                        }
                    }
                }
                sorted.add( j, dirents[i] );
            }
            if( maxLen > 50 ) {
                maxLen = 50;
            }
            maxLen *= 9; /* convert to px */
    
            out = resp.getWriter();
    
            resp.setContentType( "text/html" );
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 22 03:57:31 UTC 2020
    - 19.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/NamingTest.java

    
        private static String[] splitString ( String str, int maxLen ) {
            int num = str.length() / maxLen;
            if ( str.length() % maxLen != 0 ) {
                num++;
            }
            String strings[] = new String[num];
            for ( int i = 0; i < num; i++ ) {
                strings[ i ] = str.substring(i * maxLen, Math.min(str.length() - 1, ( i + 1 ) * maxLen));
            }
            return strings;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

                            break;
                        }
                    }
                }
                sorted.add(j, dirents[ i ]);
            }
            if ( maxLen > 50 ) {
                maxLen = 50;
            }
            maxLen *= 9; /* convert to px */
    
            resp.setContentType("text/html");
    
            out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            }
    
            return Strings.fromOEMBytes(src, srcIndex, Strings.findTermination(src, srcIndex, maxLen), getConfig());
        }
    
    
        /**
         * 
         * @param src
         * @param srcIndex
         * @param srcEnd
         * @param maxLen
         * @param unicode
         * @return read string
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    			// r is 2 to 4 bytes
    			if len(chars) == width {
    				if chars == string(r) {
    					return i
    				}
    				continue
    			}
    			// Use bytealg.IndexString for performance if available.
    			if bytealg.MaxLen >= width {
    				if bytealg.IndexString(chars, string(r)) >= 0 {
    					return i
    				}
    				continue
    			}
    		}
    		for _, ch := range chars {
    			if r == ch {
    				return i
    			}
    		}
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
Back to top