Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for branching (0.05 sec)

  1. android/guava/src/com/google/common/base/Ascii.java

          char c1 = s1.charAt(i);
          char c2 = s2.charAt(i);
          if (c1 == c2) {
            continue;
          }
          int alphaIndex = getAlphaIndex(c1);
          // This was also benchmarked using '&' to avoid branching (but always evaluate the rhs),
          // however this showed no obvious improvement.
          if (alphaIndex < 26 && alphaIndex == getAlphaIndex(c2)) {
            continue;
          }
          return false;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/LongMath.java

          // Both a and b are odd. Assume a > b; then gcd(a - b, b) = gcd(a, b).
          // But in gcd(a - b, b), a - b is even and b is odd, so we can divide out powers of two.
    
          // We bend over backwards to avoid branching, adapting a technique from
          // http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax
    
          long delta = a - b; // can't overflow, since a and b are nonnegative
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbConnectionTest.java

            assertTrue(config.isUseBatching(), "Batching should be enabled");
    
            // When both are enabled, batch limits should be available
            int limit = config.getBatchLimit("TreeConnectAndX.QueryInformation");
            assertTrue(limit >= 0, "Batch limit should be non-negative when Unicode and batching enabled");
        }
    
        /**
         * Test configuration when batching is disabled
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            int length = testBlock.encode(buffer, 0);
    
            assertTrue(length > 0);
            assertNull(testBlock.getAndx()); // andx should be cleared when batching disabled
        }
    
        @Test
        @DisplayName("Test encode with andx command and batching enabled")
        void testEncodeWithAndxBatchingEnabled() {
            when(mockConfig.isUseBatching()).thenReturn(true);
            when(mockAndxCommand.getCommand()).thenReturn(0x42);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * JUnit 5 tests for AndXServerMessageBlock in legacy smb1 package.
     *
     * The tests use small stub subclasses to drive encode/decode paths and
     * validate batching, chaining, signing, and NT_CREATE_ANDX extended handling.
     */
    class AndXServerMessageBlockTest {
    
        /**
         * Test stub for AndXServerMessageBlock to control read/write logic.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** Milliseconds between 1970 and 1601 */
        long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
        /** Default timezone */
        TimeZone TZ = TimeZone.getDefault();
    
        /** Whether to use batching */
        boolean USE_BATCHING = Config.getBoolean("jcifs.smb1.smb.client.useBatching", true);
        /** OEM encoding */
        String OEM_ENCODING = Config.getProperty("jcifs.smb1.encoding", Config.DEFAULT_OEM_ENCODING);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

             * the 'received' member of the response object will not
             * be set to true indicating the send and sendTransaction
             * methods that the next part should be sent. This is a
             * very indirect and simple batching control mechanism.
             */
    
            if (andx == null || !USE_BATCHING || batchLevel >= getBatchLimit(andx.command)) {
                andxCommand = (byte) 0xFF;
                andx = null;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. docs/tr/docs/alternatives.md

    Sonrasında ise projenin odağı değişti.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

             * the 'received' member of the response object will not
             * be set to true indicating the send and sendTransaction
             * methods that the next part should be sent. This is a
             * very indirect and simple batching control mechanism.
             */
    
            if (this.andx == null || !getConfig().isUseBatching()
                    || this.batchLevel >= getBatchLimit(getConfig(), (byte) this.andx.getCommand())) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

        var finished: Boolean = false,
      ) : Sink {
        /**
         * Buffer of outgoing data. This batches writes of small writes into this sink as larges frames
         * written to the outgoing connection. Batching saves the (small) framing overhead.
         */
        private val sendBuffer = Buffer()
    
        /** Trailers to send at the end of the stream. */
        var trailers: Headers? = null
    
        var closed: Boolean = false
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top