Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 111 for peekc (0.03 seconds)

  1. internal/lru/lru.go

    func (c *LRU[K, V]) Contains(key K) (ok bool) {
    	c.mu.RLock()
    	defer c.mu.RUnlock()
    	_, ok = c.items[key]
    	return ok
    }
    
    // Peek returns the key value (or undefined if not found) without updating
    // the "recently used"-ness of the key.
    func (c *LRU[K, V]) Peek(key K) (value V, ok bool) {
    	c.mu.RLock()
    	defer c.mu.RUnlock()
    	var ent *Entry[K, V]
    	if ent, ok = c.items[key]; ok {
    		// Expired item check
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/util/transport/Transport.java

         * @return the generated key
         * @throws IOException if an I/O error occurs
         */
        protected abstract long makeKey(Request request) throws IOException;
    
        /**
         * Peek at the next key without removing it from the input stream
         *
         * @return the next key or null if none available
         * @throws IOException if an I/O error occurs
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

            delegate.put(element)
            editCount++
          }
        }
    
        override fun iterator() = error("unsupported")
    
        override fun offer(e: T) = error("unsupported")
    
        override fun peek(): T = error("unsupported")
    
        override fun offer(
          element: T,
          timeout: Long,
          unit: TimeUnit,
        ) = error("unsupported")
    
        override fun take() = error("unsupported")
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed May 28 23:28:25 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
        BlockingQueue<String> queue = new ArrayBlockingQueue<>(999);
        putUninterruptibly(queue, "");
        assertTimeNotPassed(stopwatch, LONG_DELAY_MS);
        assertThat(queue.peek()).isEqualTo("");
      }
    
      public void testPutNoInterrupt() {
        TimedPutQueue queue = TimedPutQueue.createWithDelay(20);
        queue.putSuccessfully();
        assertNotInterrupted();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/TreeTraverser.java

          this.queue = new ArrayDeque<>();
          queue.add(root);
        }
    
        @Override
        public boolean hasNext() {
          return !queue.isEmpty();
        }
    
        @Override
        public T peek() {
          return queue.element();
        }
    
        @Override
        public T next() {
          T result = queue.remove();
          Iterables.addAll(queue, children(result));
          return result;
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 18:39:06 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(cache.getUnchecked(one)).isSameInstanceAs(one);
        assertThat(segment.recencyQueue.isEmpty()).isTrue();
        assertThat(map.get(one)).isSameInstanceAs(one);
        assertThat(segment.recencyQueue.peek().getKey()).isSameInstanceAs(one);
        assertThat(cache.getUnchecked(one)).isSameInstanceAs(one);
        assertThat(segment.recencyQueue.isEmpty()).isFalse();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(cache.getUnchecked(one)).isSameInstanceAs(one);
        assertThat(segment.recencyQueue.isEmpty()).isTrue();
        assertThat(map.get(one)).isSameInstanceAs(one);
        assertThat(segment.recencyQueue.peek().getKey()).isSameInstanceAs(one);
        assertThat(cache.getUnchecked(one)).isSameInstanceAs(one);
        assertThat(segment.recencyQueue.isEmpty()).isFalse();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      /** Checks that #drain() invocations behave correctly for a drained (empty) queue. */
      private void assertDrained(BlockingQueue<Object> q) {
        assertThat(q.peek()).isNull();
        assertInterruptibleDrained(q);
        assertUninterruptibleDrained(q);
      }
    
      private void assertInterruptibleDrained(BlockingQueue<Object> q) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

         * 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.
         */
        @Override
        public int available() throws IOException {
            SmbNamedPipe pipe;
            TransPeekNamedPipe req;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  10. api/go1.26.txt

    pkg bytes, method (*Buffer) Peek(int) ([]uint8, error) #73794
    pkg crypto, type Decapsulator interface { Decapsulate, Encapsulator } #75300
    pkg crypto, type Decapsulator interface, Decapsulate([]uint8) ([]uint8, error) #75300
    pkg crypto, type Decapsulator interface, Encapsulator() Encapsulator #75300
    pkg crypto, type Encapsulator interface { Bytes, Encapsulate } #75300
    pkg crypto, type Encapsulator interface, Bytes() []uint8 #75300
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Dec 11 19:57:52 GMT 2025
    - 11.5K bytes
    - Click Count (0)
Back to Top