Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for 0xffffffffffffffff (0.03 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)).isEqualTo(1);
        assertThat(UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)).isEqualTo(0);
        assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 65535)).isEqualTo(281479271743488L);
        assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 2)).isEqualTo(0x7fffffffffffffffL);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       * unless the user is actually calling a parse method.
       */
      private static final class ParseOverflowDetection {
        private ParseOverflowDetection() {}
    
        // calculated as 0xffffffffffffffff / radix
        static final long[] maxValueDivs = new long[Character.MAX_RADIX + 1];
        static final int[] maxValueMods = new int[Character.MAX_RADIX + 1];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        } else if (frameLength == PAYLOAD_LONG.toLong()) {
          frameLength = source.readLong()
          if (frameLength < 0L) {
            throw ProtocolException(
              "Frame length 0x${frameLength.toHexString()} > 0x7FFFFFFFFFFFFFFF",
            )
          }
        }
    
        if (isControlFrame && frameLength > PAYLOAD_BYTE_MAX) {
          throw ProtocolException("Control frame must be less than ${PAYLOAD_BYTE_MAX}B.")
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

        assertFailsWith<ProtocolException> {
          clientReader.processNextFrame()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "Frame length 0x8000000000000000 > 0x7FFFFFFFFFFFFFFF",
          )
        }
      }
    
      @Test fun serverHelloTwoChunks() {
        data.write("818537fa213d7f9f4d".decodeHex()) // Hel
        data.write("5158".decodeHex()) // lo
        serverReader.processNextFrame()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top