Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 478 for readArg (0.53 sec)

  1. src/cmd/link/internal/ld/macho_combine_dwarf.go

    			err = machoUpdateLoadCommand(reader, linkseg, linkoffset, &linkEditDataCmd{}, "DataOff")
    		case LC_ENCRYPTION_INFO, LC_ENCRYPTION_INFO_64:
    			err = machoUpdateLoadCommand(reader, linkseg, linkoffset, &encryptionInfoCmd{}, "CryptOff")
    		case LC_UUID:
    			var u uuidCmd
    			err = reader.ReadAt(0, &u)
    			if err == nil {
    				copy(u.Uuid[:], uuidFromGoBuildId(*flagBuildid))
    				err = reader.WriteAt(0, &u)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loadpe/ldpe.go

    	RedirectToDynImportGotToken = -2
    )
    
    // TODO(brainman): maybe just add ReadAt method to bio.Reader instead of creating peBiobuf
    
    // peBiobuf makes bio.Reader look like io.ReaderAt.
    type peBiobuf bio.Reader
    
    func (f *peBiobuf) ReadAt(p []byte, off int64) (int, error) {
    	ret := ((*bio.Reader)(f)).MustSeek(off, 0)
    	if ret < 0 {
    		return 0, errors.New("fail to seek")
    	}
    	n, err := f.Read(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 20:26:46 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

         *
         * ## Upstream
         *
         * In this case the current thread is assigned as the upstream reader. We read bytes from
         * upstream and copy them to both the file and to the buffer. Finally we release the upstream
         * reader lock and return the new bytes.
         *
         * ## The file
         *
         * In this case we copy bytes from the file to the [sink].
         *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. cmd/erasure-healing.go

    	var found int
    	var notFound int
    	var foundNotEmpty int
    	var otherFound int
    	for _, readErr := range errs {
    		switch {
    		case readErr == nil:
    			found++
    		case readErr == errFileNotFound || readErr == errVolumeNotFound:
    			notFound++
    		case readErr == errVolumeNotEmpty:
    			foundNotEmpty++
    		default:
    			otherFound++
    		}
    	}
    	found = found + foundNotEmpty + otherFound
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.8K bytes
    - Viewed (0)
  5. src/net/textproto/reader_test.go

    package textproto
    
    import (
    	"bufio"
    	"bytes"
    	"io"
    	"net"
    	"reflect"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    func reader(s string) *Reader {
    	return NewReader(bufio.NewReader(strings.NewReader(s)))
    }
    
    func TestReadLine(t *testing.T) {
    	r := reader("line1\nline2\n")
    	s, err := r.ReadLine()
    	if s != "line1" || err != nil {
    		t.Fatalf("Line 1: %s, %v", s, err)
    	}
    	s, err = r.ReadLine()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    }
    
    // getResponseCode reads a http response from the given reader, returns the response,
    // the bytes read from the reader, and any error encountered
    func getResponse(r io.Reader) (*http.Response, []byte, error) {
    	rawResponse := bytes.NewBuffer(make([]byte, 0, 256))
    	// Save the bytes read while reading the response headers into the rawResponse buffer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. src/bufio/bufio.go

    // NewReaderSize returns a new [Reader] whose buffer has at least the specified
    // size. If the argument io.Reader is already a [Reader] with large enough
    // size, it returns the underlying [Reader].
    func NewReaderSize(rd io.Reader, size int) *Reader {
    	// Is it already a Reader?
    	b, ok := rd.(*Reader)
    	if ok && len(b.buf) >= size {
    		return b
    	}
    	r := new(Reader)
    	r.reset(make([]byte, max(size, minReadBufferSize)), rd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  8. pkg/config/analysis/local/istiod_analyze.go

    	ResourceName string
    }
    
    // ReaderSource is a tuple of a io.Reader and filepath.
    type ReaderSource struct {
    	// Name is the name of the source (commonly the path to a file, but can be "-" for sources read from stdin or "" if completely synthetic).
    	Name string
    	// Reader is the reader instance to use.
    	Reader io.Reader
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 21:06:13 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. src/internal/trace/generation.go

    			if err != nil {
    				return fmt.Errorf("reading frame %d's PC for stack %d: %w", i+1, id, err)
    			}
    			funcID, err := binary.ReadUvarint(r)
    			if err != nil {
    				return fmt.Errorf("reading frame %d's funcID for stack %d: %w", i+1, id, err)
    			}
    			fileID, err := binary.ReadUvarint(r)
    			if err != nil {
    				return fmt.Errorf("reading frame %d's fileID for stack %d: %w", i+1, id, err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/internal/zstd/fse.go

    	}
    
    	return nil
    }
    
    // fseBaselineEntry is an entry in an FSE baseline table.
    // We use these for literal/match/length values.
    // Those require mapping the symbol to a baseline value,
    // and then reading zero or more bits and adding the value to the baseline.
    // Rather than looking these up in separate tables,
    // we convert the FSE table to an FSE baseline table.
    type fseBaselineEntry struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:44:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
Back to top