- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 159 for toLong (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt
assertThat(body.contentLength()).isEqualTo(expected.length.toLong()) val buffer = Buffer() body.writeTo(buffer) assertThat(buffer.readUtf8()).isEqualTo(expected) } @Test fun buildEmptyForm() { val body = FormBody.Builder().build() val expected = "" assertThat(body.contentLength()).isEqualTo(expected.length.toLong()) val buffer = Buffer() body.writeTo(buffer)
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 7.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/LongConversionUtil.java
* @return 変換された{@link Long} */ public static Long toLong(final Object o) { return toLong(o, null); } /** * {@link Long}に変換します。 * * @param o * 変換元のオブジェクト * @param pattern * パターン文字列 * @return 変換された{@link Long} */ public static Long toLong(final Object o, final String pattern) { if (o == null) {
Registered: 2025-05-24 08:58 - Last Modified: 2025-05-10 01:32 - 3.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/LongConversionUtilTest.java
* */ public class LongConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToLong() throws Exception { assertEquals(new Long("1000"), LongConversionUtil.toLong("1,000")); } /** * @throws Exception */ public void testToPrimitiveLong() throws Exception { assertEquals(1000, LongConversionUtil.toPrimitiveLong("1,000")); } /**
Registered: 2025-05-24 08:58 - Last Modified: 2025-05-10 01:32 - 1.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Writer.kt
frameHeader( streamId = streamId, length = length + 4, type = TYPE_PUSH_PROMISE, flags = if (byteCount == length.toLong()) FLAG_END_HEADERS else 0, ) sink.writeInt(promisedStreamId and 0x7fffffff) sink.write(hpackBuffer, length.toLong()) if (byteCount > length) writeContinuationFrames(streamId, byteCount - length) } } @Throws(IOException::class)
Registered: 2025-05-30 11:42 - Last Modified: 2025-05-28 23:28 - 11K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt
@Suppress("UNUSED_VARIABLE") val ttl = buf.readInt().toLong() and 0xffffffffL // ttl val length = buf.readShort().toInt() and 0xffff if (type == TYPE_A || type == TYPE_AAAA) { val bytes = ByteArray(length) buf.read(bytes) result.add(InetAddress.getByAddress(bytes)) } else { buf.skip(length.toLong()) } } return result }
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 3.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt
offset: Int = 0, byteCount: Int = size, ): RequestBody { checkOffsetAndCount(size.toLong(), offset.toLong(), byteCount.toLong()) return object : RequestBody() { override fun contentType() = contentType override fun contentLength() = byteCount.toLong() override fun writeTo(sink: BufferedSink) { sink.write(this@toRequestBody, offset, byteCount) }
Registered: 2025-05-30 11:42 - Last Modified: 2025-05-27 14:51 - 9.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
val constructed = (tagAndClass and 0b0010_0000) == 0b0010_0000 val tag = when (val tag0 = tagAndClass and 0b0001_1111) { 0b0001_1111 -> readVariableLengthLong() else -> tag0.toLong() } // Read the length. val length0 = source.readByte().toInt() and 0xff val length = when { length0 == 0b1000_0000 -> {
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 10.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheStrategy.kt
if (requestCaching.maxAgeSeconds != -1) { freshMillis = minOf(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds.toLong())) } var minFreshMillis: Long = 0 if (requestCaching.minFreshSeconds != -1) { minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds.toLong()) } var maxStaleMillis: Long = 0
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 12K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/bsentity/dbmeta/AccessTokenDbm.java
setupEpg(_epgMap, et -> ((AccessToken) et).getCreatedTime(), (et, vl) -> ((AccessToken) et).setCreatedTime(DfTypeUtil.toLong(vl)), "createdTime"); setupEpg(_epgMap, et -> ((AccessToken) et).getExpiredTime(), (et, vl) -> ((AccessToken) et).setExpiredTime(DfTypeUtil.toLong(vl)), "expiredTime");
Registered: 2025-05-26 08:04 - Last Modified: 2025-03-15 06:53 - 11.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt
} override fun readTimeoutMillis(): Int = readTimeoutMillis override fun withReadTimeout( timeout: Int, unit: TimeUnit, ): Interceptor.Chain { check(exchange == null) { "Timeouts can't be adjusted in a network interceptor" } return copy(readTimeoutMillis = checkDuration("readTimeout", timeout.toLong(), unit)) }
Registered: 2025-05-30 11:42 - Last Modified: 2024-12-27 13:39 - 4.2K bytes - Viewed (0)