Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 329 for 0xff (0.1 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt

        val length = source.readMedium()
        if (length > INITIAL_MAX_FRAME_SIZE) {
          throw IOException("FRAME_SIZE_ERROR: $length")
        }
        val type = source.readByte() and 0xff
        val flags = source.readByte() and 0xff
        val streamId = source.readInt() and 0x7fffffff // Ignore reserved bit.
        if (type != TYPE_WINDOW_UPDATE && logger.isLoggable(FINE)) {
          logger.fine(frameLog(true, streamId, length, type, flags))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            assertEquals(25, SMBUtil.readInt2(buffer, bodyOffset));
    
            // Flags (VcNumber) and SecurityMode
            assertEquals(0x01, buffer[bodyOffset + 2] & 0xFF); // Session binding flag
            assertEquals(securityMode, buffer[bodyOffset + 3] & 0xFF);
    
            // Capabilities
            assertEquals(capabilities, SMBUtil.readInt4(buffer, bodyOffset + 4));
    
            // Channel
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

                    0x01, // ShareType (DISK)
                    0x00, // Reserved
                    0x01, 0x00, 0x00, 0x00, // ShareFlags
                    0x08, 0x00, 0x00, 0x00, // Capabilities
                    (byte) 0xFF, 0x01, 0x1F, 0x00 // MaximalAccess
            };
    
            // When
            int bytesRead = response.readBytesWireFormat(wireData, 0);
    
            // Then
            assertEquals(16, bytesRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                assertTrue(result2 > 0);
    
                // Verify headers in both buffers
                for (int i = 0; i < 8; i++) {
                    assertEquals((byte) 0xFF, buffer1[i]);
                    assertEquals((byte) 0xFF, buffer2[50 + i]);
                }
            }
        }
    
        @Nested
        @DisplayName("Integration Pattern Tests")
        class IntegrationPatternTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          sort(copy);
          tmp += copy[0];
        }
        return tmp;
      }
    
      @Benchmark
      int arraysSortOrderingNatural(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          sort(copy, Ordering.natural());
          tmp += copy[0];
        }
        return tmp;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            // Check FID (little-endian)
            assertEquals(0x34, dst[0] & 0xFF);
            assertEquals(0x12, dst[1] & 0xFF);
            // Check count
            assertEquals(10, dst[2] & 0xFF);
            assertEquals(0, dst[3] & 0xFF);
            // Check offset
            assertEquals(0x78, dst[4] & 0xFF);
            assertEquals(0x56, dst[5] & 0xFF);
        }
    
        /**
         * Test writeBytesWireFormat writes data correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

          h ^= fingerprint(buf, bufLen);
          h = remix(h);
          buf[bufLen++] = getChar(h);
    
          int x0 = buf[bufLen - 1] & 0xff;
          int x1 = buf[bufLen - 2] & 0xff;
          int x2 = buf[bufLen - 3] & 0xff;
          int x3 = buf[bufLen / 2] & 0xff;
          buf[((x0 << 16) + (x1 << 8) + x2) % bufLen] ^= x3;
          buf[((x1 << 16) + (x2 << 8) + x3) % bufLen] ^= i % 256;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

        private static Stream<Arguments> provideFidTestCases() {
            return Stream.of(Arguments.of(0x0000, (byte) 0x00, (byte) 0x00), Arguments.of(0x00FF, (byte) 0xFF, (byte) 0x00),
                    Arguments.of(0xFF00, (byte) 0x00, (byte) 0xFF), Arguments.of(0xFFFF, (byte) 0xFF, (byte) 0xFF),
                    Arguments.of(0x1234, (byte) 0x34, (byte) 0x12));
        }
    
        @Test
        @DisplayName("readSetupWireFormat should return 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle maximum values correctly")
            void testMaximumValues() {
                request.setPadding((byte) 0xFF);
                request.setReadFlags((byte) 0xFF);
                request.setReadLength(Integer.MAX_VALUE);
                request.setOffset(Long.MAX_VALUE);
                request.setMinimumCount(Integer.MAX_VALUE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        void constructorMasksValue(int input) {
            NdrShort ns = new NdrShort(input);
            // NdrShort masks to 0xFF (8 bits) in its constructor
            int expected = input & 0xFF;
            assertEquals(expected, ns.value, "value should be masked to 0xFF before storing");
        }
    
        /**
         * Round-trip encode/decode for a selection of representative values.
         */
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top