Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 7,014 for rreturn (0.08 sec)

  1. internal/ringbuffer/ring_buffer.go

    	defer r.mu.Unlock()
    
    	if r.w == r.r {
    		if r.isFull {
    			return r.size
    		}
    		return 0
    	}
    
    	if r.w > r.r {
    		return r.w - r.r
    	}
    
    	return r.size - r.r + r.w
    }
    
    // Capacity returns the size of the underlying buffer.
    func (r *RingBuffer) Capacity() int {
    	return r.size
    }
    
    // Free returns the length of available bytes to write.
    func (r *RingBuffer) Free() int {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/bytes/iter.go

    				line, s = s, nil
    			}
    			if !yield(line[:len(line):len(line)]) {
    				return
    			}
    		}
    		return
    	}
    }
    
    // explodeSeq returns an iterator over the runes in s.
    func explodeSeq(s []byte) iter.Seq[[]byte] {
    	return func(yield func([]byte) bool) {
    		for len(s) > 0 {
    			_, size := utf8.DecodeRune(s)
    			if !yield(s[:size:size]) {
    				return
    			}
    			s = s[size:]
    		}
    	}
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:23:13 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Splitter.java

                      }
                      return p;
                    }
                    return -1;
                  }
    
                  @Override
                  public int separatorEnd(int separatorPosition) {
                    return separatorPosition + separator.length();
                  }
                };
              }
            });
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type2Message.java

                }
            }
            return flags;
        }
    
    
        /**
         * Returns the challenge for this message.
         *
         * @return A <code>byte[]</code> containing the challenge.
         */
        public byte[] getChallenge () {
            return this.challenge;
        }
    
    
        /**
         * Sets the challenge for this message.
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Optional.java

       * Optional.map}, except when {@code function} returns {@code null}. In this case this method
       * throws an exception, whereas the Java 8+ method returns {@code Optional.absent()}.
       *
       * @throws NullPointerException if the function returns {@code null}
       * @since 12.0
       */
      public abstract <V> Optional<V> transform(Function<? super T, V> function);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CharMatcher.java

          case 0:
            return none();
          case 1:
            return is(sequence.charAt(0));
          case 2:
            return isEither(sequence.charAt(0), sequence.charAt(1));
          default:
            // TODO(lowasser): is it potentially worth just going ahead and building a precomputed
            // matcher?
            return new AnyOf(sequence);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  7. cmd/bucket-replication-utils.go

    func (rt ResyncStatusType) isValid() bool {
    	return rt != NoResync
    }
    
    func (rt ResyncStatusType) String() string {
    	switch rt {
    	case ResyncStarted:
    		return "Ongoing"
    	case ResyncCompleted:
    		return "Completed"
    	case ResyncFailed:
    		return "Failed"
    	case ResyncPending:
    		return "Pending"
    	case ResyncCanceled:
    		return "Canceled"
    	default:
    		return ""
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  8. internal/grid/types.go

    	return &ArrayOf[T]{
    		ePool: sync.Pool{New: func() any {
    			return newFn()
    		}},
    	}
    }
    
    // New returns a new empty Array.
    func (p *ArrayOf[T]) New() *Array[T] {
    	return &Array[T]{
    		p: p,
    	}
    }
    
    // NewWith returns a new Array with the provided value (not copied).
    func (p *ArrayOf[T]) NewWith(val []T) *Array[T] {
    	return &Array[T]{
    		p:   p,
    		val: val,
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java

            return packages;
        }
    
        /**
         * The key that can must used to identify the configuration using the
         * {@link javax.inject.Named} annotation.
         */
        public String getKey() {
            return key;
        }
    
        /**
         * Returns the configuration for this extension.
         */
        public XmlNode getConfiguration() {
            return configuration;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractMultiset.java

        }
        return result;
      }
    
      @WeakOuter
      class EntrySet extends Multisets.EntrySet<E> {
        @Override
        Multiset<E> multiset() {
          return AbstractMultiset.this;
        }
    
        @Override
        public Iterator<Entry<E>> iterator() {
          return entryIterator();
        }
    
        @Override
        public int size() {
          return distinctElements();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
Back to top