Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,303 for Read (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          }
    
          val read = super.read(sink, minOf(byteCount, bytesRemainingInChunk))
          if (read == -1L) {
            carrier.noNewExchanges() // The server didn't supply the promised chunk length.
            val e = ProtocolException("unexpected end of stream")
            responseBodyComplete()
            throw e
          }
          bytesRemainingInChunk -= read
          return read
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        TF_SetStatus(status, TF_UNKNOWN, "Could not get content-length header");
        return -1;
      }
      // `TF_OUT_OF_RANGE` isn't considered as an error. So we clear it here.
      TF_SetStatus(status, TF_OK, "");
      TF_VLog(1, "Successful read of %s @ %u of size: %u", path.c_str(), offset,
              read);
      stream.read(buffer, read);
      read = stream.gcount();
      if (read < buffer_size) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(2, lin.available());
        int read = lin.read();
        assertEquals(big[0], read);
        assertEquals(1, lin.available());
        read = lin.read();
        assertEquals(big[1], read);
        assertEquals(0, lin.available());
        read = lin.read();
        assertEquals(-1, read);
    
        lin.reset();
        byte[] small = new byte[5];
        read = lin.read(small);
        assertEquals(2, read);
        assertEquals(big[0], small[0]);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_security/test_tutorial005_an_py39.py

    
    @needs_py39
    def test_read_system_status(client: TestClient):
        access_token = get_access_token(client=client)
        response = client.get(
            "/status/", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"status": "ok"}
    
    
    @needs_py39
    def test_read_system_status_no_token(client: TestClient):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial005_py310.py

    
    @needs_py310
    def test_read_system_status(client: TestClient):
        access_token = get_access_token(client=client)
        response = client.get(
            "/status/", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"status": "ok"}
    
    
    @needs_py310
    def test_read_system_status_no_token(client: TestClient):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/references/ReadWriteAccessCheckerDescriptorsImpl.kt

                    assignment.getCall(this)?.getResolvedCall(this) ?: return ReferenceAccess.READ_WRITE to assignment
                }
            }
            return if (resolvedCall.resultingDescriptor.name in OperatorConventions.ASSIGNMENT_OPERATIONS.values)
                ReferenceAccess.READ to assignment
            else
                ReferenceAccess.READ_WRITE to assignment
        }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 10 16:23:23 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        /** The next byte to read. This is always less than or equal to [upstreamPos]. */
        private var sourcePos = 0L
    
        /**
         * Selects where to find the bytes for a read and read them. This is one of three sources.
         *
         * ## Upstream
         *
         * In this case the current thread is assigned as the upstream reader. We read bytes from
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        @Throws(IOException::class)
        override fun read(
          sink: Buffer,
          byteCount: Long,
        ): Long {
          check(!closed) { "closed" }
          try {
            val read = delegate.read(sink, byteCount)
    
            if (invokeStartEvent) {
              invokeStartEvent = false
              eventListener.responseBodyStart(call)
            }
    
            if (read == -1L) {
              complete(null)
              return -1L
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  9. docs/en/docs/how-to/general.md

    ## Filter Data - Security
    
    To ensure that you don't return more data than you should, read the docs for [Tutorial - Response Model - Return Type](../tutorial/response-model.md){.internal-link target=_blank}.
    
    ## Documentation Tags - OpenAPI
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        ByteSource source = out.asByteSource();
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.reset();
        assertTrue(Arrays.equals(new byte[0], source.read()));
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.close();
      }
    
      private static boolean isAndroid() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
Back to top