Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 206 for IsStream (0.14 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. docs/debugging/inspect/decrypt-v2.go

    	}
    	extracted := false
    	for {
    		stream, err := sr.NextStream()
    		if err != nil {
    			if err == io.EOF {
    				if extracted {
    					return nil
    				}
    				return errors.New("no data found on stream")
    			}
    			if errors.Is(err, estream.ErrNoKey) {
    				if stream.Name == "inspect.zip" {
    					return errors.New("incorrect private key")
    				}
    				if err := stream.Skip(); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 21:22:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/LinePerThreadBufferingOutputStream.java

        public void println(boolean x) {
            PrintStream stream = getStream();
            synchronized (this) {
                stream.print(x);
                stream.print(lineSeparator);
            }
        }
    
        @Override
        public void println(char x) {
            PrintStream stream = getStream();
            synchronized (this) {
                stream.print(x);
                stream.print(lineSeparator);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top