Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 7,014 for rreturn (0.1 sec)

  1. src/bufio/bufio.go

    		p = p[n:]
    	}
    	if b.err != nil {
    		return nn, b.err
    	}
    	n := copy(b.buf[b.n:], p)
    	b.n += n
    	nn += n
    	return nn, nil
    }
    
    // WriteByte writes a single byte.
    func (b *Writer) WriteByte(c byte) error {
    	if b.err != nil {
    		return b.err
    	}
    	if b.Available() <= 0 && b.Flush() != nil {
    		return b.err
    	}
    	b.buf[b.n] = c
    	b.n++
    	return nil
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle.go

    					DeleteAction, DeleteVersionAction:
    					return -1
    				}
    				switch b.Action {
    				case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
    					DeleteAction, DeleteVersionAction:
    					return 1
    				}
    				return -1
    			}
    
    			// Prefer earlier occurring event
    			if a.Due.Before(b.Due) {
    				return -1
    			}
    			return 1
    		})
    		return events[0]
    	}
    
    	return Event{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java

     */
    @Experimental
    public interface VersionConstraint {
        /**
         * Returns the range of this constraint, or {@code null} if none.
         * <p>
         * Note: only one, this method or {@link #getRecommendedVersion()} method must return non-{@code null} value.
         */
        @Nullable
        VersionRange getVersionRange();
    
        /**
         * Returns the recommended version of this constraint, or {@code null} if none.
         * <p>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. internal/kms/config.go

    			return false, fmt.Errorf("kms: incomplete configuration for MinIO KMS: missing '%s'", EnvKMSDefaultKey)
    		}
    		if !isPresent(EnvKMSAPIKey) {
    			return false, fmt.Errorf("kms: incomplete configuration for MinIO KMS: missing '%s'", EnvKMSAPIKey)
    		}
    		return true, nil
    	case staticKeyPresent:
    		if isPresent(EnvKMSSecretKey) && isPresent(EnvKMSSecretKeyFile) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. cmd/metrics-v3-types.go

    	switch mt {
    	case CounterMT:
    		return "counter"
    	case GaugeMT:
    		return "gauge"
    	case HistogramMT:
    		return "histogram"
    	default:
    		return "*unknown*"
    	}
    }
    
    func (mt MetricType) toProm() prometheus.ValueType {
    	switch mt {
    	case CounterMT:
    		return prometheus.CounterValue
    	case GaugeMT:
    		return prometheus.GaugeValue
    	case HistogramMT:
    		return prometheus.CounterValue
    	default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. internal/event/target/mqtt.go

    	return target.id
    }
    
    // Name - returns the Name of the target.
    func (target *MQTTTarget) Name() string {
    	return target.ID().String()
    }
    
    // Store returns any underlying store if set.
    func (target *MQTTTarget) Store() event.TargetStore {
    	return target.store
    }
    
    // IsActive - Return true if target is up and active
    func (target *MQTTTarget) IsActive() (bool, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. cmd/metacache-entries.go

    	if e == nil && other == nil {
    		return nil, true
    	}
    	if e == nil {
    		return other, false
    	}
    	if other == nil {
    		return e, false
    	}
    
    	// Name should match...
    	if e.name != other.name {
    		if e.name < other.name {
    			return e, false
    		}
    		return other, false
    	}
    
    	if other.isDir() || e.isDir() {
    		if e.isDir() {
    			return e, other.isDir() == e.isDir()
    		}
    		return other, other.isDir() == e.isDir()
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  8. internal/crypto/sse-s3.go

    	if h.Get(xhttp.AmzServerSideEncryption) != xhttp.AmzEncryptionAES {
    		return ErrInvalidEncryptionMethod
    	}
    	return nil
    }
    
    // IsEncrypted returns true if the object metadata indicates
    // that the object was uploaded using SSE-S3.
    func (sses3) IsEncrypted(metadata map[string]string) bool {
    	if _, ok := metadata[MetaSealedKeyS3]; ok {
    		return true
    	}
    	return false
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. internal/hash/reader.go

    			return n, BadDigest{
    				ExpectedMD5:   v.Expected.String(),
    				CalculatedMD5: v.Computed.String(),
    			}
    		}
    	}
    	return n, err
    }
    
    // Size returns the absolute number of bytes the Reader
    // will return during reading. It returns -1 for unlimited
    // data.
    func (r *Reader) Size() int64 { return r.size }
    
    // ActualSize returns the pre-modified size of the object.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ContiguousSet.java

        return create(Range.closedOpen(lower, upper), DiscreteDomain.longs());
      }
    
      final DiscreteDomain<C> domain;
    
      ContiguousSet(DiscreteDomain<C> domain) {
        super(Ordering.natural());
        this.domain = domain;
      }
    
      @Override
      public ContiguousSet<C> headSet(C toElement) {
        return headSetImpl(checkNotNull(toElement), false);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top