Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for 0x800 (0.15 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

          get() {
            val b3bit8 = mappedTo[0] and 0x80 != 0
            return if (b3bit8) 123 else 122
          }
    
        val b2: Int
          get() = mappedTo[0] and 0x7f
      }
    
      data class Inline2(
        override val rangeStart: Int,
        private val mappedTo: ByteString,
      ) : MappedRange {
        val b1: Int
          get() {
            val b2bit8 = mappedTo[0] and 0x80 != 0
            val b3bit8 = mappedTo[1] and 0x80 != 0
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

      private const val BASE = 36
      private const val TMIN = 1
      private const val TMAX = 26
      private const val SKEW = 38
      private const val DAMP = 700
      private const val INITIAL_BIAS = 72
      private const val INITIAL_N = 0x80
    
      /**
       * Returns null if any label is oversized so much that the encoder cannot encode it without
       * integer overflow. This will not return null for labels that fit within the DNS size
       * limits.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/IsProbablyUtf8Test.kt

        assertThat(Buffer().writeUtf8("new\r\nlines").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeUtf8("white\t space").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeByte(0x80).isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeByte(0x00).isProbablyUtf8()).isFalse()
        assertThat(Buffer().writeByte(0xc0).isProbablyUtf8()).isFalse()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageDeflater.kt

          deflatedBytes.readAndWriteUnsafe().use { cursor ->
            cursor.resizeBuffer(newSize)
          }
        } else {
          // Same as adding EMPTY_DEFLATE_BLOCK and then removing 4 bytes.
          deflatedBytes.writeByte(0x00)
        }
    
        buffer.write(deflatedBytes, deflatedBytes.size)
      }
    
      @Throws(IOException::class)
      override fun close() = deflaterSink.close()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

              current.sourceCodePoint0,
              current.section + 0x7f,
              current.type,
              current.mappedTo,
            )
          current =
            Mapping(
              current.section + 0x80,
              current.sourceCodePoint1,
              current.type,
              current.mappedTo,
            )
        } else {
          result += current
          current = if (i.hasNext()) i.next() else break
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

            sink.writeByte(ranges[rangesIndex + 2].code)
            sink.writeByte(ranges[rangesIndex + 3].code or 0x80)
          }
          127 -> {
            // Mapped inline to the sequence: [b2a, b3a].
            sink.writeByte(ranges[rangesIndex + 2].code or 0x80)
            sink.writeByte(ranges[rangesIndex + 3].code or 0x80)
          }
          else -> error("unexpected rangesIndex for $codePoint")
        }
    
        return true
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

          // Encode '+' as '%2B' since we permit ' ' to be encoded as either '+' or '%20'.
          writeUtf8(if (alreadyEncoded) "+" else "%2B")
        } else if (codePoint < 0x20 ||
          codePoint == 0x7f ||
          codePoint >= 0x80 && !unicodeAllowed ||
          codePoint.toChar() in encodeSet ||
          codePoint == '%'.code &&
          (!alreadyEncoded || strict && !input.isPercentEncoded(i, limit))
        ) {
          // Percent encode this character.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.coroutines.executeAsync
    import okhttp3.survey.types.SuiteId
    import okio.ByteString.Companion.decodeHex
    import okio.IOException
    
    /** Example: "0x00,0x08",TLS_RSA_EXPORT_WITH_DES40_CBC_SHA,Y,N,[RFC4346] */
    val IANA_CSV_PATTERN = "\"0x(\\w\\w),0x(\\w\\w)\",(\\w+).*".toRegex()
    
    fun parseIanaCsvRow(s: String): SuiteId? {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top