Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 109 for bit_string (0.27 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/BaseTestHandler.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import assertk.fail
    import okio.BufferedSource
    import okio.ByteString
    
    internal open class BaseTestHandler : Http2Reader.Handler {
      override fun data(
        inFinished: Boolean,
        streamId: Int,
        source: BufferedSource,
        length: Int,
      ) {
        fail("")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt

              decodeBuffer.readByteString()
            } else {
              source.readByteString(length)
            }
          }
        }
    
      private fun nameToFirstIndex(): Map<ByteString, Int> {
        val result = LinkedHashMap<ByteString, Int>(STATIC_HEADER_TABLE.size, 1.0F)
        for (i in STATIC_HEADER_TABLE.indices) {
          if (!result.containsKey(STATIC_HEADER_TABLE[i].name)) {
            result[STATIC_HEADER_TABLE[i].name] = i
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

      companion object {
        private val WILDCARD_LABEL = ByteString.of('*'.code.toByte())
        private val PREVAILING_RULE = listOf("*")
    
        private const val EXCEPTION_MARKER = '!'
    
        private var instance = PublicSuffixDatabase(PublicSuffixList.Default)
    
        fun get(): PublicSuffixDatabase = instance
    
        private fun ByteString.binarySearch(
          labels: Array<ByteString>,
          labelIndex: Int,
        ): String? {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt

    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_BYTE_MAX
    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_SHORT_MAX
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.EMPTY
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.AfterEachCallback
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

    import kotlin.test.assertFailsWith
    import okhttp3.dnsoverhttps.DnsRecordCodec.TYPE_A
    import okhttp3.dnsoverhttps.DnsRecordCodec.TYPE_AAAA
    import okhttp3.dnsoverhttps.DnsRecordCodec.decodeAnswers
    import okio.ByteString.Companion.decodeHex
    import org.junit.jupiter.api.Test
    
    class DnsRecordCodecTest {
      @Test
      fun testGoogleDotComEncoding() {
        val encoded = encodeQuery("google.com", TYPE_A)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 20:09:10 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/ConfiguredPublicSuffixList.kt

     */
    package okhttp3.internal.publicsuffix
    
    import okio.ByteString
    
    /**
     * An implementation of I/O for `PublicSuffixDatabase` by directly passing in ByteStrings.
     */
    internal class ConfiguredPublicSuffixList : PublicSuffixList {
      override fun ensureLoaded() {
      }
    
      override var bytes: ByteString = ByteString.EMPTY
    
      override var exceptionBytes: ByteString = ByteString.EMPTY
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 978 bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

      interface FrameCallback {
        @Throws(IOException::class)
        fun onReadMessage(text: String)
    
        @Throws(IOException::class)
        fun onReadMessage(bytes: ByteString)
    
        fun onReadPing(payload: ByteString)
    
        fun onReadPong(payload: ByteString)
    
        fun onReadClose(
          code: Int,
          reason: String,
        )
      }
    
      /**
       * Process the next protocol frame.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

        assertThat(responseString).isEmpty()
      }
    
      private fun ByteString.zstdCompress(): ByteString {
        val result = Buffer()
        result.zstdCompress().buffer().use {
          it.write(this@zstdCompress)
        }
        return result.readByteString()
      }
    
      private fun ByteString.gzipCompress(): ByteString {
        val result = Buffer()
        (result as Sink).gzip().buffer().use {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

    import mockwebserver3.internal.RecordedRequest
    import mockwebserver3.internal.decodeRequestLine
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okio.Buffer
    import okio.ByteString
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    
    @Timeout(30)
    class RecordedRequestTest {
      private val headers: Headers = Headers.EMPTY
    
      @Test fun testIPv4() {
        val socket =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt

    import java.io.FileDescriptor
    import java.io.FileInputStream
    import java.io.IOException
    import okhttp3.internal.checkOffsetAndCount
    import okhttp3.internal.chooseCharset
    import okio.BufferedSink
    import okio.ByteString
    import okio.FileSystem
    import okio.Path
    import okio.source
    
    abstract class RequestBody {
      /** Returns the Content-Type header for this body. */
      abstract fun contentType(): MediaType?
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 04 17:43:43 UTC 2025
    - 9K bytes
    - Viewed (0)
Back to top