Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for to_bytes (0.07 seconds)

  1. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        byte[] tenBytes = new byte[10];
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, -1, 1));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 1, -1));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        byte[] tenBytes = new byte[10];
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, -1, 1));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 1, -1));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/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
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 23.2K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            try (final BufferedInputStream bis = new BufferedInputStream(responseData.getResponseBody())) {
                final byte[] bomBytes = new byte[UTF8_BOM_SIZE];
                bis.mark(UTF8_BOM_SIZE);
                final int size = bis.read(bomBytes);
                if (size < 3 || !isUtf8BomBytes(bomBytes)) {
                    bis.reset();
                }
                final InputSource is = new InputSource(bis);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 55.3K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        val request = Request.Builder().url(server.url("/b")).build()
        val response = client.newCall(request).execute()
        val bodySource = response.body.source()
        assertThat(bodySource.readByte()).isEqualTo('d'.code.toByte())
    
        // The second byte of this request will be delayed by 750ms so we should time out after 250ms.
        val startNanos = System.nanoTime()
        bodySource.use {
          assertFailsWith<IOException> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
Back to Top