- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for toByte (0.05 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
private fun isMappedIpv4Address(address: ByteArray): Boolean { if (address.size != 16) return false for (i in 0 until 10) { if (address[i] != 0.toByte()) return false } if (address[10] != 255.toByte()) return false if (address[11] != 255.toByte()) return false return true } /** Encodes an IPv4 address in canonical form according to RFC 4001. */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
*/ @JvmField val FORM = "multipart/form-data".toMediaType() private val COLONSPACE = byteArrayOf(':'.code.toByte(), ' '.code.toByte()) private val CRLF = byteArrayOf('\r'.code.toByte(), '\n'.code.toByte()) private val DASHDASH = byteArrayOf('-'.code.toByte(), '-'.code.toByte()) /** * Appends a quoted-string to a StringBuilder. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt
} } @Test fun readPaddedDataFrame() { val dataLength = 1123 val expectedData = ByteArray(dataLength) Arrays.fill(expectedData, 2.toByte()) val paddingLength = 254 val padding = ByteArray(paddingLength) Arrays.fill(padding, 0.toByte()) writeMedium(frame, dataLength + paddingLength + 1) frame.writeByte(Http2.TYPE_DATA) frame.writeByte(FLAG_PADDED)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 28.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
throw ProtocolException("constructed strings not supported for DER") } return source.readUtf8(bytesLeft) } fun readObjectIdentifier(): String { val result = Buffer() val dot = '.'.code.toByte().toInt() when (val xy = readVariableLengthLong()) { in 0L until 40L -> { result.writeDecimalLong(0) result.writeByte(dot) result.writeDecimalLong(xy) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 26.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt
* malformed. */ @Throws(IOException::class) fun checkLowercase(name: ByteString): ByteString { for (i in 0 until name.size) { if (name[i] in 'A'.code.toByte()..'Z'.code.toByte()) { throw IOException("PROTOCOL_ERROR response malformed: mixed case name: ${name.utf8()}") } } return name }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
assertThat(actual).isEqualTo(expected) } private fun intArrayToByteArray(bytes: IntArray): ByteString { val data = ByteArray(bytes.size) for (i in bytes.indices) { data[i] = bytes[i].toByte() } return ByteString.of(*data) } private fun readerHeaderTableLength(): Int { return hpackReader!!.dynamicTable.size }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 38.2K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java
* * @param parser The XML parser * @param toType The target type * @return Converted instance of the target type */ private Object parse(final MXParser parser, final TypeLiteral<?> toType) throws Exception { parser.require(XmlPullParser.START_TAG, null, null); final Class<?> rawType = toType.getRawType(); if (XmlNode.class.isAssignableFrom(rawType)) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 15.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
*/ public static Date toDate(final Object src) { return toDate(src, null, LocaleUtil.getDefault()); } /** * オブジェクトを{@link Date}に変換します。 * * @param src * 変換元のオブジェクト * @param pattern * パターン文字列 * @return 変換された{@link Date} */ public static Date toDate(final Object src, final String pattern) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 21.5K bytes - Viewed (0)