Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for 127 (0.12 sec)

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

        assertThat(SignedBytes.max(LEAST)).isEqualTo(LEAST);
        assertThat(SignedBytes.max(GREATEST)).isEqualTo(GREATEST);
        assertThat(SignedBytes.max((byte) 0, (byte) -128, (byte) -1, (byte) 127, (byte) 1))
            .isEqualTo((byte) 127);
      }
    
      public void testMin_noArgs() {
        try {
          SignedBytes.min();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      private static final byte[] VALUES = {LEAST, 127, (byte) 128, (byte) 129, GREATEST};
    
      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      private static final byte[] VALUES = {LEAST, 127, (byte) 128, (byte) 129, GREATEST};
    
      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

    class HostnamesTest {
      @Test
      fun canonicalizeInetAddressNotMapped() {
        val addressA = decodeIpv6("::1")!!
        assertThat(canonicalizeInetAddress(addressA)).isEqualTo(addressA)
    
        val addressB = byteArrayOf(127, 0, 0, 1)
        assertThat(canonicalizeInetAddress(addressB)).isEqualTo(addressB)
    
        val addressC = byteArrayOf(192.toByte(), 168.toByte(), 0, 1)
        assertThat(canonicalizeInetAddress(addressC)).isEqualTo(addressC)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 30 06:23:33 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

    @Timeout(30)
    class RecordedRequestTest {
      private val headers: Headers = EMPTY_HEADERS
    
      @Test fun testIPv4() {
        val socket =
          FakeSocket(
            localAddress = InetAddress.getByAddress("127.0.0.1", byteArrayOf(127, 0, 0, 1)),
            localPort = 80,
          )
        val request = RecordedRequest("GET / HTTP/1.1", headers, emptyList(), 0, Buffer(), 0, socket)
        assertThat(request.requestUrl.toString()).isEqualTo("http://127.0.0.1/")
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

      ) : MappedRange {
        val b1: Int
          get() {
            val b2bit8 = mappedTo[0] and 0x80 != 0
            val b3bit8 = mappedTo[1] and 0x80 != 0
            return when {
              b2bit8 && b3bit8 -> 127
              b3bit8 -> 126
              b2bit8 -> 125
              else -> 124
            }
          }
    
        val b2: Int
          get() = mappedTo[0] and 0x7f
    
        val b3: Int
          get() = mappedTo[1] and 0x7f
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

        assertThat(SignedBytes.max(LEAST)).isEqualTo(LEAST);
        assertThat(SignedBytes.max(GREATEST)).isEqualTo(GREATEST);
        assertThat(SignedBytes.max((byte) 0, (byte) -128, (byte) -1, (byte) 127, (byte) 1))
            .isEqualTo((byte) 127);
      }
    
      public void testMin_noArgs() {
        try {
          SignedBytes.min();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/action_string.go

    var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127, 150, 182, 193}
    
    func (i Action) String() string {
    	if i < 0 || i >= Action(len(_Action_index)-1) {
    		return "Action(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _Action_name[_Action_index[i]:_Action_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

       *
       * If this value is [PAYLOAD_SHORT], the next two
       * bytes represent the length. If this value is [PAYLOAD_LONG], the next eight bytes
       * represent the length.
       */
      internal const val B1_MASK_LENGTH = 127
    
      internal const val OPCODE_CONTINUATION = 0x0
      internal const val OPCODE_TEXT = 0x1
      internal const val OPCODE_BINARY = 0x2
    
      internal const val OPCODE_CONTROL_CLOSE = 0x8
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/net/UuidUtil.java

    import org.codelibs.core.lang.StringUtil;
    
    /**
     * UUIDを作成するユーティリティです。
     *
     * @author higa
     */
    public abstract class UuidUtil {
    
        private static final byte[] DEFAULT_ADDRESS = new byte[] { (byte) 127, (byte) 0, (byte) 0, (byte) 1 };
    
        private static final SecureRandom RANDOM = new SecureRandom();
    
        private static final String BASE = StringUtil.toHex(getAddress()) + StringUtil.toHex(System.identityHashCode(RANDOM));
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top