Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for byteArrayOf (0.13 sec)

  1. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

        assertThat(
          inet4AddressToAscii(
            byteArrayOf(0, 0, 0, 0),
          ),
        ).isEqualTo("0.0.0.0")
    
        assertThat(
          inet4AddressToAscii(
            byteArrayOf(1, 2, 3, 4),
          ),
        ).isEqualTo("1.2.3.4")
    
        assertThat(
          inet4AddressToAscii(
            byteArrayOf(127, 0, 0, 1),
          ),
        ).isEqualTo("127.0.0.1")
    
        assertThat(
          inet4AddressToAscii(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 30 06:23:33 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. 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/")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

        }
    
        private
        fun touchFile(path: Path) {
            Files.createDirectories(path.parent)
            Files.write(path, byteArrayOf())
        }
    
        private
        fun someClasses(): Sequence<Path> {
            val directory = projectDir.resolve("classes")
    
            touchFile(directory.resolve("com/acme/Foo.class"))
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Oct 11 19:14:16 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt

          0x3ffffec, 0x3ffffed, 0x7ffffe7, 0x7ffffe8, 0x7ffffe9, 0x7ffffea, 0x7ffffeb, 0xffffffe,
          0x7ffffec, 0x7ffffed, 0x7ffffee, 0x7ffffef, 0x7fffff0, 0x3ffffee,
        )
    
      private val CODE_BIT_COUNTS =
        byteArrayOf(
          13, 23, 28, 28, 28, 28, 28, 28, 28, 24, 30, 28, 28, 30, 28, 28, 28, 28, 28, 28,
          28, 28, 30, 28, 28, 28, 28, 28, 28, 28, 28, 28, 6, 10, 10, 12, 13, 6, 8, 11, 10, 10, 8,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top