Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,107 for IsStream (0.13 sec)

  1. src/os/file_windows.go

    			kind = "console"
    		}
    		if t, err := syscall.GetFileType(h); err == nil && t == syscall.FILE_TYPE_PIPE {
    			kind = "pipe"
    		}
    	}
    
    	f := &File{&file{
    		pfd: poll.FD{
    			Sysfd:         h,
    			IsStream:      true,
    			ZeroReadIsEOF: true,
    		},
    		name: name,
    	}}
    	runtime.SetFinalizer(f.file, (*file).close)
    
    	// Ignore initialization errors.
    	// Assume any problems will show up in later I/O.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/os/file_unix.go

    // the runtime poller.
    func newFile(fd int, name string, kind newFileKind, nonBlocking bool) *File {
    	f := &File{&file{
    		pfd: poll.FD{
    			Sysfd:         fd,
    			IsStream:      true,
    			ZeroReadIsEOF: true,
    		},
    		name:        name,
    		stdoutOrErr: fd == 1 || fd == 2,
    	}}
    
    	pollable := kind == kindOpenFile || kind == kindPipe || kind == kindSock || nonBlocking
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. src/internal/poll/fd_windows.go

    	// Semaphore signaled when file is closed.
    	csema uint32
    
    	skipSyncNotif bool
    
    	// Whether this is a streaming descriptor, as opposed to a
    	// packet-based descriptor like a UDP socket.
    	IsStream bool
    
    	// Whether a zero byte read indicates EOF. This is false for a
    	// message based socket connection.
    	ZeroReadIsEOF bool
    
    	// Whether this is a file rather than a network socket.
    	isFile bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/stream.go

    // the exact bytes written to the stream. Zero byte messages are possible.
    const binaryWebSocketProtocol = "binary.k8s.io"
    
    // The WebSocket subprotocol "base64.binary.k8s.io" will only send messages to the
    // client and ignore messages sent to the server. The received messages are
    // a base64 version of the bytes written to the stream. Zero byte messages are
    // possible.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. 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)
  6. mockwebserver/src/main/kotlin/mockwebserver3/Stream.kt

     */
    @ExperimentalOkHttpApi
    interface Stream {
      val requestBody: BufferedSource
      val responseBody: BufferedSink
    
      /**
       * Terminate the stream so that no further data is transmitted or received. Note that
       * [requestBody] may return data after this call; that is the buffered data received before this
       * stream was canceled.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/encoding/json/stream.go

    	return string(d)
    }
    
    // Token returns the next JSON token in the input stream.
    // At the end of the input stream, Token returns nil, [io.EOF].
    //
    // Token guarantees that the delimiters [ ] { } it returns are
    // properly nested and matched: if Token encounters an unexpected
    // delimiter in the input, it will return an error.
    //
    // The input stream consists of basic JSON values—bool, string,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  8. cmd/metacache-stream.go

    	"github.com/tinylib/msgp/msgp"
    	"github.com/valyala/bytebufferpool"
    )
    
    // metadata stream format:
    //
    // The stream is s2 compressed.
    // https://github.com/klauspost/compress/tree/master/s2#s2-compression
    // This ensures integrity and reduces the size typically by at least 50%.
    //
    // All stream elements are msgpack encoded.
    //
    // 1 Integer, metacacheStreamVersion of the writer.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/proxy/websocket.go

    	return channels
    }
    
    // readChannel returns wsstream.ReadChannel if real is true, or wsstream.IgnoreChannel.
    func readChannel(real bool) wsstream.ChannelType {
    	if real {
    		return wsstream.ReadChannel
    	}
    	return wsstream.IgnoreChannel
    }
    
    // writeChannel returns wsstream.WriteChannel if real is true, or wsstream.IgnoreChannel.
    func writeChannel(real bool) wsstream.ChannelType {
    	if real {
    		return wsstream.WriteChannel
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. 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)
Back to top