Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for sentinel (0.09 sec)

  1. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            assertEquals((byte) 0x00, buf[2], "Reserved byte must be 0");
            assertEquals((byte) 0xDE, buf[3], "Sentinel low offset when no chaining");
            assertEquals((byte) 0xDE, buf[4], "Sentinel high offset when no chaining");
            assertNull(block.andx, "andx should be cleared when not chaining");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/NullnessCasts.java

       *
       * <p>This method is intended to help with usages of type parameters that have {@linkplain
       * ParametricNullness parametric nullness}. Sometimes, code may receive a null {@code T} but store
       * a "null sentinel" to take its place. When the time comes to convert it back to a {@code T} to
       * return to a caller, the code needs to a way to return {@code null} from a method that returns
       * "plain {@code T}." This API provides that.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 20:49:47 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DosErrorTest.java

            // Assert
            assertEquals(0x00000000, actual);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { -1, 1, 0x00FFFF00, 0x0BADF00D })
        @DisplayName("Invalid or unknown DOS codes return not-found sentinel (-1)")
        void unknownCodesReturnMinusOne(int dosCode) {
            // Act
            int actual = findNtStatusOrMinusOne(dosCode);
    
            // Assert
            assertEquals(-1, actual);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. internal/lru/lru.go

    // The zero Value for LruList is an empty list ready to use.
    type LruList[K comparable, V any] struct {
    	root Entry[K, V] // sentinel list element, only &root, root.prev, and root.next are used
    	len  int         // current list Length excluding (this) sentinel element
    }
    
    // Init initializes or clears list l.
    func (l *LruList[K, V]) Init() *LruList[K, V] {
    	l.root.next = &l.root
    	l.root.prev = &l.root
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            // Stop the thread by sending n = -1
            synchronized (w) {
                w.write(new byte[0], -1, out);
            }
    
            w.join(2000);
            assertFalse(w.isAlive(), "WriterThread should stop after -1 sentinel");
        }
    
        @Test
        @DisplayName("WriterThread surfaces SmbException via checkException")
        void writerThread_propagates_exception() throws Exception {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/Dfs.java

        static final long TTL = Config.getLong("jcifs.smb1.smb.client.dfs.ttl", 300);
        static final boolean DISABLED = Config.getBoolean("jcifs.smb1.smb.client.dfs.disabled", false);
    
        /**
         * Sentinel cache entry indicating a negative cache result
         */
        protected static CacheEntry FALSE_ENTRY = new Dfs.CacheEntry(0L);
    
        /**
         * Cache of trusted domains for DFS resolution
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

       * or empty headers if there were none that followed.
       *
       * If the response body was closed prematurely or failed with an error, this will be the sentinel
       * value [TRAILERS_RESPONSE_BODY_TRUNCATED]. In that case attempts to read the trailers should not
       * return the value but instead throw an exception.
       */
      private var trailers: Headers? = null
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (7)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

       *
       * @param method defaults to "GET" if [body] is null, and "POST" otherwise.
       */
      constructor(
        url: HttpUrl,
        headers: Headers = headersOf(),
        // '\u0000' is a sentinel value that'll choose based on what the body is:
        method: String = "\u0000",
        body: RequestBody? = null,
      ) : this(
        Builder()
          .url(url)
          .headers(headers)
          .method(
            when {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  9. src/bufio/scan.go

    // Text returns the most recent token generated by a call to [Scanner.Scan]
    // as a newly allocated string holding its bytes.
    func (s *Scanner) Text() string {
    	return string(s.token)
    }
    
    // ErrFinalToken is a special sentinel error value. It is intended to be
    // returned by a Split function to indicate that the scanning should stop
    // with no error. If the token being delivered with this error is not nil,
    // the token is the last token.
    //
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed May 21 18:05:26 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. cmd/erasure-healing-common_test.go

    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    			},
    			time.Unix(0, 3).UTC(),
    			4,
    		},
    		{
    			// 3. Tests common time obtained when elements have a mixture of
    			// sentinel values and don't have read quorum on any of the values.
    			[]time.Time{
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 2).UTC(),
    				time.Unix(0, 1).UTC(),
    				time.Unix(0, 3).UTC(),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top