Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1301 - 1310 of 6,241 for If (0.09 sec)

  1. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

         */
    
        public synchronized int read( byte[] b, int off, int len ) throws IOException {
            if( len == 0 ) {
                return 0;
            }
            tot = 0;
    
            while( true ) {
                while( bip > 0 ) {
                    n = in.read( b, off, Math.min( len, bip ));
                    if( n == -1 ) {
                        return tot > 0 ? tot : -1;
                    }
                    tot += n;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  2. internal/crypto/key.go

    // and a source of randomness. If random is nil the default PRNG of the
    // system (crypto/rand) is used.
    func GenerateKey(extKey []byte, random io.Reader) (key ObjectKey) {
    	if random == nil {
    		random = rand.Reader
    	}
    	if len(extKey) != 32 { // safety check
    		logger.CriticalIf(context.Background(), errors.New("crypto: invalid key length"))
    	}
    	var nonce [32]byte
    	if _, err := io.ReadFull(random, nonce[:]); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 19 20:28:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     *
     * @throws IOException if a network error occurs
     */
    
        public int read( byte[] b, int off, int len ) throws IOException {
            return readDirect(b, off, len);
        }
        public int readDirect( byte[] b, int off, int len ) throws IOException {
            if( len <= 0 ) {
                return 0;
            }
            long start = fp;
    
            if( tmp == null ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                final Map<String, Object> dataMap) {
            if (content == null) {
                return StringUtil.EMPTY; // empty
            }
    
            if (crawlingConfig != null) {
                final Map<String, String> configParam = crawlingConfig.getConfigParameterMap(ConfigName.CONFIG);
                if (configParam != null && Constants.TRUE.equalsIgnoreCase(configParam.get(Param.Config.KEEP_ORIGINAL_BODY))) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        public <T> T convertIfNeed(final Object arg) {
            if (propertyType.isPrimitive()) {
                return (T) convertPrimitiveWrapper(arg);
            } else if (Number.class.isAssignableFrom(propertyType)) {
                return (T) convertNumber(arg);
            } else if (java.util.Date.class.isAssignableFrom(propertyType)) {
                return (T) convertDate(arg);
            } else if (Boolean.class.isAssignableFrom(propertyType)) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

         * @return number of bytes read
         *
         * @throws IOException
         *             if a network error occurs
         */
        public int readDirect ( byte[] b, int off, int len ) throws IOException {
            if ( len <= 0 ) {
                return 0;
            }
            long start = this.fp;
    
            if ( this.tmp == null ) {
                throw new IOException("Bad file descriptor");
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  7. cmd/server-rlimit.go

    		// Only set max threads if it is greater than the default one
    		if minioMaxThreads > 10000 {
    			debug.SetMaxThreads(minioMaxThreads)
    		}
    	}
    
    	var maxLimit uint64
    
    	// Set open files limit to maximum.
    	if _, maxLimit, err = sys.GetMaxOpenFileLimit(); err != nil {
    		return err
    	}
    
    	if maxLimit < 4096 && runtime.GOOS != globalWindowsOSName {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:09:36 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                    }
                    throw e;
                }
                if ( log.isTraceEnabled() ) {
                    log.trace("Returned from NtTransNotifyChange " + resp.getErrorCode());
                }
    
                if ( !resp.isReceived() ) {
                    throw new CIFSException("Did not receive response");
                }
    
                if ( resp.getErrorCode() == 0x10B ) {
                    this.handle.markClosed();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.5K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    		}
    
    		if tt.n == 0 || len(a) == 0 {
    			continue
    		}
    
    		if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    			t.Errorf("last appended result was %s; want %s", x, want)
    		}
    
    		s := Join(a, []byte(tt.sep))
    		if string(s) != tt.s {
    			t.Errorf(`Join(Split(%q, %q, %d), %q) = %q`, tt.s, tt.sep, tt.n, tt.sep, s)
    		}
    		if tt.n < 0 {
    			b := sliceOfString(Split([]byte(tt.s), []byte(tt.sep)))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  10. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/crypto/DefaultSettingsDecrypter.java

            for (Server server : request.getServers()) {
                server = server.clone();
    
                String password = server.getPassword();
                if (securityDispatcher.isAnyEncryptedString(password)) {
                    try {
                        if (securityDispatcher.isLegacyEncryptedString(password)) {
                            problems.add(new DefaultSettingsProblem(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top