Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 630 for toType (0.03 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

            DELIMITER_DOT -> {
              if (readByte() != '.'.code.toByte()) throw IOException("expected '..'")
              readHexadecimalUnsignedLong()
            }
    
            else -> sourceCodePoint0
          }
    
        skipWhitespace()
        if (readByte() != ';'.code.toByte()) throw IOException("expected ';'")
    
        // "valid" or "mapped"
        skipWhitespace()
        val type = select(optionsType)
    
        when (type) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

            sink.writeByte((length shr shift).toInt())
          }
        }
    
        // Write the payload.
        sink.writeAll(content)
      }
    
      /**
       * Execute [block] with a new namespace for type hints. Type hints from the enclosing type are no
       * longer usable by the current type's members.
       */
      fun <T> withTypeHint(block: () -> T): T {
        typeHintStack.add(null)
        try {
          return block()
        } finally {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

            } else if (type == Byte.class) {
                return ByteConversionUtil.toByte(o);
            }
            return o;
        }
    
        /**
         * Converts to the wrapper type corresponding to the specified primitive type.
         *
         * @param type
         *            Primitive type
         * @param o
         *            Source object
         * @return Object converted to the wrapper type corresponding to the specified primitive type
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/text/Tokenizer.java

         *
         * @return The type of the token.
         */
        public int nextToken() {
            initVal();
            if (processEOF()) {
                return ttype;
            }
            if (processWhitespace()) {
                return ttype;
            }
            if (processWord()) {
                return ttype;
            }
            if (processQuote()) {
                return ttype;
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt

            byteArrayOf(192.toByte(), 168.toByte(), 0, 1),
          ),
        ).isEqualTo("192.168.0.1")
    
        assertThat(
          inet4AddressToAscii(
            byteArrayOf(252.toByte(), 253.toByte(), 254.toByte(), 255.toByte()),
          ),
        ).isEqualTo("252.253.254.255")
    
        assertThat(
          inet4AddressToAscii(
            byteArrayOf(255.toByte(), 255.toByte(), 255.toByte(), 255.toByte()),
          ),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

              // and convert back to byte.
              val bufferInt: Int = buffer[i].toInt()
              val keyInt: Int = key[keyIndex].toInt()
              buffer[i] = (bufferInt xor keyInt).toByte()
    
              i++
              keyIndex++
            }
          }
        } while (cursor.next() != -1)
      }
    
      fun closeCodeExceptionMessage(code: Int): String? =
        if (code < 1000 || code >= 5000) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

    private fun Buffer.skipCommasAndWhitespace(): Boolean {
      var commaFound = false
      loop@ while (!exhausted()) {
        when (this[0]) {
          ','.code.toByte() -> {
            // Consume ','.
            readByte()
            commaFound = true
          }
    
          ' '.code.toByte(), '\t'.code.toByte() -> {
            readByte()
            // Consume space or tab.
          }
    
          else -> break@loop
        }
      }
      return commaFound
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/ByteConversionUtil.java

         */
        public static Byte toByte(final Object o) {
            return toByte(o, null);
        }
    
        /**
         * Converts to {@link Byte}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link Byte}
         */
        public static Byte toByte(final Object o, final String pattern) {
            if (o == null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/convert/ByteConversionUtilTest.java

     *
     */
    public class ByteConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToByte() throws Exception {
            assertEquals(Byte.valueOf("100"), ByteConversionUtil.toByte("100"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveByte() throws Exception {
            assertEquals(100, ByteConversionUtil.toPrimitiveByte("100"));
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

            // array.
            while (mid > -1 && this[mid] != '\n'.code.toByte()) {
              mid--
            }
            mid++
    
            // Now look for the ending '\n'.
            var end = 1
            while (this[mid + end] != '\n'.code.toByte()) {
              end++
            }
            val publicSuffixLength = mid + end - mid
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top