Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for WriteByte (6 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        val expected =
          Buffer()
            .writeByte(0x40) // Literal header, new name.
            .writeByte(0x82) // String literal is Huffman encoded (len = 2).
            .writeByte(0x94) // 'foo' Huffman encoded.
            .writeByte(0xE7)
            .writeByte(3) // String literal not Huffman encoded (len = 3).
            .writeByte('b'.code)
            .writeByte('a'.code)
            .writeByte('r'.code)
            .readByteString()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

              rangesBuffer.writeByte(range.b1)
              rangesBuffer.writeByte('-'.code)
              rangesBuffer.writeByte('-'.code)
            }
            is MappedRange.Inline1 -> {
              rangesBuffer.writeByte(range.b1)
              rangesBuffer.writeByte(range.b2)
              rangesBuffer.writeByte('-'.code)
            }
            is MappedRange.Inline2 -> {
              rangesBuffer.writeByte(range.b1)
              rangesBuffer.writeByte(range.b2)
    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)
  3. okhttp/src/test/java/okhttp3/SocksProxy.kt

              throw ProtocolException("unexpected address: " + toSocket.localAddress)
            }
    
            // Write the reply.
            fromSink.writeByte(VERSION_5)
            fromSink.writeByte(REPLY_SUCCEEDED)
            fromSink.writeByte(0)
            fromSink.writeByte(ADDRESS_TYPE_IPV4)
            fromSink.write(localAddress)
            fromSink.writeShort(toSocket.localPort)
            fromSink.emit()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

            // Mapped inline to the sequence: [b2].
            sink.writeByte(ranges[rangesIndex + 2].code)
          }
          123 -> {
            // Mapped inline to the sequence: [b2a].
            sink.writeByte(ranges[rangesIndex + 2].code or 0x80)
          }
          124 -> {
            // Mapped inline to the sequence: [b2, b3].
            sink.writeByte(ranges[rangesIndex + 2].code)
            sink.writeByte(ranges[rangesIndex + 3].code)
          }
          125 -> {
    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)
  5. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        val buffer =
          Buffer()
            .writeByte(0b00000010)
            .writeByte(0b10001001)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
            .writeByte(0b11111111)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          writeUtf8(MAGIC).writeByte('\n'.code)
          writeUtf8(VERSION_1).writeByte('\n'.code)
          writeDecimalLong(appVersion.toLong()).writeByte('\n'.code)
          writeDecimalLong(valueCount.toLong()).writeByte('\n'.code)
          writeByte('\n'.code)
    
          for (entry in lruEntries.values) {
            if (entry.currentEditor != null) {
              writeUtf8(DIRTY).writeByte(' '.code)
              writeUtf8(entry.key)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        val headerBytes = literalHeaders(sentHeaders)
        writeMedium(frame, (headerBytes.size + 5).toInt())
        frame.writeByte(Http2.TYPE_HEADERS)
        frame.writeByte(FLAG_END_HEADERS or FLAG_PRIORITY)
        frame.writeInt(expectedStreamId and 0x7fffffff)
        frame.writeInt(0) // Independent stream.
        frame.writeByte(255) // Heaviest weight, zero-indexed.
        frame.writeAll(headerBytes)
        reader.nextFrame(
          requireSettings = false,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

          val byte0 = tagClass or constructedBit or tag.toInt()
          sink.writeByte(byte0)
        } else {
          val byte0 = tagClass or constructedBit or 0b0001_1111
          sink.writeByte(byte0)
          writeVariableLengthLong(tag)
        }
    
        // Write the length. This takes 1 byte if length is less than 128.
        val length = content.size
        if (length < 128) {
          sink.writeByte(length.toInt())
        } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

          }
    
          while (!encodedCharBuffer.exhausted()) {
            val b = encodedCharBuffer.readByte().toInt() and 0xff
            writeByte('%'.code)
            writeByte(HEX_DIGITS[b shr 4 and 0xf].code)
            writeByte(HEX_DIGITS[b and 0xf].code)
          }
        } else {
          // This character doesn't need encoding. Just copy it over.
          writeUtf8CodePoint(codePoint)
        }
    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)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

        val dataSize = messageBuffer.size
        sinkBuffer.writeByte(b0)
    
        var b1 = 0
        if (isClient) {
          b1 = b1 or B1_FLAG_MASK
        }
        when {
          dataSize <= PAYLOAD_BYTE_MAX -> {
            b1 = b1 or dataSize.toInt()
            sinkBuffer.writeByte(b1)
          }
          dataSize <= PAYLOAD_SHORT_MAX -> {
            b1 = b1 or PAYLOAD_SHORT
            sinkBuffer.writeByte(b1)
            sinkBuffer.writeShort(dataSize.toInt())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top