Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 158 for IsStream (0.23 sec)

  1. src/os/zero_copy_linux.go

    	}
    	return err
    }
    
    func (f *File) writeTo(w io.Writer) (written int64, handled bool, err error) {
    	pfd, network := getPollFDAndNetwork(w)
    	// TODO(panjf2000): same as File.spliceToFile.
    	if pfd == nil || !pfd.IsStream || !isUnixOrTCP(string(network)) {
    		return
    	}
    
    	sc, err := f.SyscallConn()
    	if err != nil {
    		return
    	}
    
    	rerr := sc.Read(func(fd uintptr) (done bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/internal/poll/fd_wasip1.go

    // descriptor isn't closed until all FD instances that refer to it have been
    // closed/destroyed.
    func (fd *FD) Copy() FD {
    	return FD{
    		Sysfd:         fd.Sysfd,
    		SysFile:       fd.SysFile.ref(),
    		IsStream:      fd.IsStream,
    		ZeroReadIsEOF: fd.ZeroReadIsEOF,
    		isBlocking:    fd.isBlocking,
    		isFile:        fd.isFile,
    	}
    }
    
    // dupCloseOnExecOld always errors on wasip1 because there is no mechanism to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. internal/grid/stream.go

    	// If the request context is canceled, the stream will no longer process requests.
    	// Requests sent cannot be used any further by the called.
    	Requests chan<- []byte
    
    	muxID uint64
    	ctx   context.Context
    }
    
    // Send a payload to the remote server.
    func (s *Stream) Send(b []byte) error {
    	if s.Requests == nil {
    		return errors.New("stream does not accept requests")
    	}
    	select {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/stream_executor/stream_executor_internal.h

      SP_Event event_handle_;
    };
    
    class CStream : public StreamCommon {
     public:
      CStream(SP_Device* device, SP_StreamExecutor* stream_executor,
              StreamExecutor* executor)
          : StreamCommon(executor),
            device_(device),
            stream_executor_(stream_executor),
            stream_handle_(nullptr) {}
      ~CStream() override {
        parent()->BlockHostUntilDone(this).IgnoreError();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

                stream.received(bytes)
            }
    
            then:
            1 * dispatch.onOutput({ it instanceof ReadStdInEvent }) >> { instant.requested }
        }
    
        def "read byte returns when stream is closed"() {
            def dispatch = Mock(OutputEventListener)
            def stream = new StdInStream(dispatch)
    
            when:
            async {
                start {
                    def b1 = stream.read()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/cc/experimental/libtf/impl/iostream_test.cc

    TEST(OStreamTest, TestInt64) {
      Int64 x(42);
      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "42");
    }
    
    TEST(OStreamTest, TestFloat32) {
      Float32 x(0.375);  // Exactly representable as a float.
      std::stringstream stream;
      stream << x;
      ASSERT_EQ(stream.str(), "0.375");
    }
    
    TEST(OStreamTest, TestString) {
      String s("foo");
      std::stringstream stream;
      stream << s;
      ASSERT_EQ(stream.str(), "foo");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy

            given:
            def stream = factory.newStream()
            stream.forCurrentCaller()
            stream.forCurrentCaller()
    
            expect:
            stream.forCurrentCaller().stack.empty
    
            def failure1 = new Exception("broken")
            def diagnostics1 = stream.forCurrentCaller(failure1)
            diagnostics1.exception == failure1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. platforms/jvm/jvm-services/src/main/java/org/gradle/jvm/toolchain/internal/WindowsInstallationSupplier.java

    import org.gradle.internal.os.OperatingSystem;
    
    import java.io.File;
    import java.util.Collections;
    import java.util.List;
    import java.util.Set;
    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    
    public class WindowsInstallationSupplier implements InstallationSupplier {
    
        private final WindowsRegistry windowsRegistry;
        private final OperatingSystem os;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 22:14:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_host_send_device_context.h

    //  done_event->Init();
    //
    //  XlaHostSendDeviceContext device_context(&stream, &gpu_dst,
    //    shape, done_event);
    //  device_context.CopyCPUTensorToDeviceSync(
    //    &cpu_tensor, &device, &device_tensor);
    
    class XlaHostSendDeviceContext : public DeviceContext {
     public:
      XlaHostSendDeviceContext(
          se::Stream* stream, se::DeviceMemoryBase* device_memory_base,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java

    import javax.annotation.Nullable;
    import java.io.EOFException;
    import java.io.IOException;
    import java.io.InputStream;
    
    /**
     * Provides a way to decode structured data from a backing byte stream. Implementations may buffer incoming bytes read
     * from the backing stream prior to decoding.
     */
    public interface Decoder {
        /**
         * Returns an InputStream which can be used to read raw bytes.
         */
        InputStream getInputStream();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top