Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 791 for readArg (0.1 sec)

  1. docs/debugging/inspect/decrypt-v2.go

    		}
    		if stream.Name == "inspect.zip" {
    			if extracted {
    				return keepFileErr{errors.New("multiple inspect.zip streams found")}
    			}
    			_, err := io.Copy(w, stream)
    			if err != nil {
    				return fmt.Errorf("reading inspect stream: %w", err)
    			}
    			fmt.Println(okMsg)
    			extracted = true
    			continue
    		}
    		if err := stream.Skip(); err != nil {
    			return fmt.Errorf("stream skip: %w", err)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 21:22:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/internal/saferio/io.go

    // allocating all n bytes in cases where n is incorrect.
    //
    // The error is io.EOF only if no bytes were read.
    // If an io.EOF happens after reading some but not all the bytes,
    // ReadData returns io.ErrUnexpectedEOF.
    func ReadData(r io.Reader, n uint64) ([]byte, error) {
    	if int64(n) < 0 || n != uint64(int(n)) {
    		// n is too large to fit in int, so we can't allocate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testplugin/testdata/checkdwarf/main.go

    	}
    
    	data, err := exe.DWARF()
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "%s: error opening DWARF: %v\n", exePath, err)
    		os.Exit(1)
    	}
    
    	rdr := data.Reader()
    	for {
    		e, err := rdr.Next()
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "%s: error reading DWARF: %v\n", exePath, err)
    			os.Exit(1)
    		}
    		if e == nil {
    			break
    		}
    		name, hasname := e.Val(dwarf.AttrName).(string)
    		if !hasname {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/io/pipe.go

    func (r *PipeReader) Read(data []byte) (n int, err error) {
    	return r.pipe.read(data)
    }
    
    // Close closes the reader; subsequent writes to the
    // write half of the pipe will return the error [ErrClosedPipe].
    func (r *PipeReader) Close() error {
    	return r.CloseWithError(nil)
    }
    
    // CloseWithError closes the reader; subsequent writes
    // to the write half of the pipe will return the error err.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. pkg/hbone/util.go

    		// request body). For server, the FIN will be sent when the handler returns - but
    		// this only happen after request is completed and body has been read. If server wants
    		// to send FIN first - while still reading the body - we are in trouble.
    
    		// That means HTTP2 TCP servers provide no way to send a FIN from server, without
    		// having the request fully read.
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/Lmhosts.java

                    long lm;
    
                    if ( ( lm = f.lastModified() ) > this.lastModified ) {
                        if ( log.isDebugEnabled() ) {
                            log.debug("Reading " + tc.getConfig().getLmHostsFileName());
                        }
                        this.lastModified = lm;
                        this.table.clear();
                        try ( FileReader r = new FileReader(f) ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.1K bytes
    - Viewed (0)
  7. src/cmd/dist/imports.go

    		}
    		c = 0
    	}
    	return c
    }
    
    // peekByte returns the next byte from the input reader but does not advance beyond it.
    // If skipSpace is set, peekByte skips leading spaces and comments.
    func (r *importReader) peekByte(skipSpace bool) byte {
    	if r.err != nil {
    		if r.nerr++; r.nerr > 10000 {
    			panic("go/build: import reader looping")
    		}
    		return 0
    	}
    
    	// Use r.peek as first input byte.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 21:45:30 UTC 2019
    - 6.3K bytes
    - Viewed (0)
  8. tools/istio-iptables/pkg/builder/iptables_builder_impl.go

    	if rb.cfg.TraceLogging && idx >= 0 && command != log.UndefinedCommand {
    		match := params[:idx]
    		// 1337 group is just a random constant to be matched on the log reader side
    		// Size of 20 allows reading the IPv4 IP header.
    		match = append(match, "-j", "NFLOG", "--nflog-prefix", fmt.Sprintf(`%q`, command.Identifier), "--nflog-group", "1337", "--nflog-size", "20")
    		*ipt = append(*ipt, &Rule{
    			chain:  chain,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. src/net/http/httputil/dump.go

    			dump = dump[:i+4]
    		}
    	}
    	return dump, nil
    }
    
    // delegateReader is a reader that delegates to another reader,
    // once it arrives on a channel.
    type delegateReader struct {
    	c   chan io.Reader
    	err error     // only used if r is nil and c is closed.
    	r   io.Reader // nil until received from c
    }
    
    func (r *delegateReader) Read(p []byte) (int, error) {
    	if r.r == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. src/debug/pe/section.go

    func (s *Section) Data() ([]byte, error) {
    	return saferio.ReadDataAt(s.sr, uint64(s.Size), 0)
    }
    
    // Open returns a new ReadSeeker reading the PE section s.
    //
    // If s.Offset is 0, the section has no contents, and all calls
    // to the returned reader will return a non-nil error.
    func (s *Section) Open() io.ReadSeeker {
    	return io.NewSectionReader(s.sr, 0, 1<<63-1)
    }
    
    // Section characteristics flags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top