Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,072 for putA (0.1 sec)

  1. internal/grid/types.go

    		return make([]T, 0, sz)
    	}
    	t2 := *t
    	return t2[:0]
    }
    
    func (p *ArrayOf[T]) putA(v []T) {
    	var zero T // nil
    	for i, t := range v {
    		//nolint:staticcheck // SA6002 IT IS A GENERIC VALUE!
    		p.ePool.Put(t)
    		v[i] = zero
    	}
    	if v != nil {
    		v = v[:0]
    		p.aPool.Put(&v)
    	}
    }
    
    func (p *ArrayOf[T]) newE() T {
    	return p.ePool.Get().(T)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java

    // this here, possibly indefinitely.
    //
    public interface RepositoryCache {
    
        /**
         * Puts the specified data into the cache. <strong>Warning:</strong> The cache will directly save the provided
         * reference. If the cached data is mutable, i.e. could be modified after being put into the cache, the caller is
         * responsible for creating a copy of the original data and store the copy in the cache.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. internal/store/queuestore.go

    	}
    
    	if err != nil {
    		return err
    	}
    	// Increment the item count.
    	store.entries[key.String()] = time.Now().UnixNano()
    	return nil
    }
    
    // Put - puts an item to the store.
    func (store *QueueStore[I]) Put(item I) (Key, error) {
    	store.Lock()
    	defer store.Unlock()
    	if uint64(len(store.entries)) >= store.entryLimit {
    		return Key{}, errLimitExceeded
    	}
    	// Generate a new UUID for the key.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. internal/store/queuestore_test.go

    	if err != nil {
    		t.Fatal("Failed to create a queue store ", err)
    	}
    	for i := 0; i < 5; i++ {
    		if _, err := store.Put(testItem); err != nil {
    			t.Fatal("Failed to put to queue store ", err)
    		}
    	}
    	// Should not allow 6th Put.
    	if _, err := store.Put(testItem); err == nil {
    		t.Fatalf("Expected to fail with %s, but passes", errLimitExceeded)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RangeMap.java

       *
       * <p>Specifically, after a call to {@code put(range, value)}, if {@link
       * Range#contains(Comparable) range.contains(k)}, then {@link #get(Comparable) get(k)} will return
       * {@code value}.
       *
       * <p>If {@code range} {@linkplain Range#isEmpty() is empty}, then this is a no-op.
       */
      void put(Range<K> range, V value);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RangeMap.java

       *
       * <p>Specifically, after a call to {@code put(range, value)}, if {@link
       * Range#contains(Comparable) range.contains(k)}, then {@link #get(Comparable) get(k)} will return
       * {@code value}.
       *
       * <p>If {@code range} {@linkplain Range#isEmpty() is empty}, then this is a no-op.
       */
      void put(Range<K> range, V value);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                    }
                }
    
                // Pre-store the checksums as any future puts will overwrite them
                for (String extension : checksums.keySet()) {
                    ChecksumObserver observer = checksums.get(extension);
                    sums.put(extension, observer.getActualChecksum());
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  8. docs/en/docs/python-types.md

    #### List
    
    For example, let's define a variable to be a `list` of `str`.
    
    //// tab | Python 3.9+
    
    Declare the variable, with the same colon (`:`) syntax.
    
    As the type, put `list`.
    
    As the list is a type that contains some internal types, you put them in square brackets:
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial006_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:47:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/converter/KatakanaToAlphabetConverter.java

            map.put("ト", new String[] { "to" });
    
            map.put("ナ", new String[] { "na" });
            map.put("ニ", new String[] { "ni" });
            map.put("ヌ", new String[] { "nu" });
            map.put("ネ", new String[] { "ne" });
            map.put("ノ", new String[] { "no" });
    
            map.put("ハ", new String[] { "ha" });
            map.put("ヒ", new String[] { "hi" });
            map.put("フ", new String[] { "hu", "fu" });
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/doc.go

    	this symbol.
    
    	In the <remote>, # or @ can be used to introduce a symbol version.
    
    	Examples:
    	//go:cgo_import_dynamic puts
    	//go:cgo_import_dynamic puts puts#GLIBC_2.2.5
    	//go:cgo_import_dynamic puts puts#GLIBC_2.2.5 "libc.so.6"
    
    	A side effect of the cgo_import_dynamic directive with a
    	library is to make the final binary depend on that dynamic
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 01 22:52:54 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top