Search Options

Results per page
Sort
Preferred Languages
Advance

Results 681 - 690 of 7,250 for return (0.11 sec)

  1. cmd/object-api-utils.go

    			size, err := strconv.ParseInt(sizeStr, 10, 64)
    			if err != nil {
    				return -1, errObjectTampered
    			}
    			return size, nil
    		}
    		actualSize, err := o.DecryptedSize()
    		if err != nil {
    			return -1, err
    		}
    		if (actualSize == 0) && (actualSize != o.Size) {
    			return -1, errObjectTampered
    		}
    		return actualSize, nil
    	}
    	return o.Size, nil
    }
    
    // Disabling compression for encrypted enabled requests.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. cni/pkg/iptables/nldeps.go

    	return DelLoopbackRoutes(cfg)
    }
    
    type emptyDeps struct{}
    
    func EmptyNlDeps() NetlinkDependencies {
    	return &emptyDeps{}
    }
    
    func (r *emptyDeps) AddInpodMarkIPRule(cfg *Config) error {
    	return nil
    }
    
    func (r *emptyDeps) DelInpodMarkIPRule(cfg *Config) error {
    	return nil
    }
    
    func (r *emptyDeps) AddLoopbackRoutes(cfg *Config) error {
    	return nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                return ImmutableList.of(1, 2).iterator();
              }
            };
        assertFailure(tester);
      }
    
      public void testUnknownOrder() {
        new IteratorTester<Integer>(
            3, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.UNKNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return newArrayList(2, 1).iterator();
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. 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)
  5. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

      }
    
      private int getCount(int index) {
        return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]);
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index));
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
        return isEmpty() ? null : getEntry(0);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

                // reads
                return (int) ( this.fp - start );
            }
        }
    
    
        /**
         * This stream class is unbuffered. Therefore this method will always
         * return 0 for streams connected to regular files. However, a
         * stream created from a Named Pipe this method will query the server using a
         * "peek named pipe" operation and return the number of available bytes
         * on the server.
    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. android/guava/src/com/google/common/primitives/Chars.java

       * @param target a primitive {@code char} value
       * @return {@code true} if {@code array[i] == target} for some value of {@code i}
       */
      public static boolean contains(char[] array, char target) {
        for (char value : array) {
          if (value == target) {
            return true;
          }
        }
        return false;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/EndpointPair.java

          }
    
          EndpointPair<?> other = (EndpointPair<?>) obj;
          if (isOrdered() != other.isOrdered()) {
            return false;
          }
    
          return source().equals(other.source()) && target().equals(other.target());
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(source(), target());
        }
    
        @Override
        public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  9. internal/bucket/replication/replication.go

    		}
    	}
    	sort.Slice(rules, func(i, j int) bool {
    		return rules[i].Priority > rules[j].Priority && rules[i].Destination.String() == rules[j].Destination.String()
    	})
    
    	return rules
    }
    
    // GetDestination returns destination bucket and storage class.
    func (c Config) GetDestination() Destination {
    	if len(c.Rules) > 0 {
    		return c.Rules[0].Destination
    	}
    	return Destination{}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java

      @Override
      public int count(@CheckForNull Object element) {
        return forward.count(element);
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
        return forward.lastEntry();
      }
    
      @Override
      @CheckForNull
      public Entry<E> lastEntry() {
        return forward.firstEntry();
      }
    
      @Override
      public int size() {
        return forward.size();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top