Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for nameBuf (0.03 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

            val nameBuf = Buffer()
            val labels = host.split('.').dropLastWhile { it.isEmpty() }
            for (label in labels) {
              val utf8ByteCount = label.utf8Size()
              require(utf8ByteCount == label.length.toLong()) { "non-ascii hostname: $host" }
              nameBuf.writeByte(utf8ByteCount.toInt())
              nameBuf.writeUtf8(label)
            }
            nameBuf.writeByte(0) // end
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top