Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for ReadSeeker (0.16 sec)

  1. src/debug/pe/file.go

    	return "unknown error"
    }
    
    // readOptionalHeader accepts an io.ReadSeeker pointing to optional header in the PE file
    // and its size as seen in the file header.
    // It parses the given size of bytes and returns optional header. It infers whether the
    // bytes being parsed refer to 32 bit or 64 bit version of optional header.
    func readOptionalHeader(r io.ReadSeeker, sz uint16) (any, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/dependencies/implementation.go

    func (r *RealDependencies) Run(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) error {
    	return r.executeXTables(cmd, iptVer, false, stdin, args...)
    }
    
    // RunQuietlyAndIgnore runs a command quietly and ignores errors
    func (r *RealDependencies) RunQuietlyAndIgnore(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) {
    	_ = r.executeXTables(cmd, iptVer, true, stdin, args...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 19:54:50 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/debug/elf/reader.go

    func (r errorReader) Seek(offset int64, whence int) (int64, error) {
    	return 0, r.error
    }
    
    func (r errorReader) Close() error {
    	return r.error
    }
    
    // readSeekerFromReader converts an io.Reader into an io.ReadSeeker.
    // In general Seek may not be efficient, but it is optimized for
    // common cases such as seeking to the end to find the length of the
    // data.
    type readSeekerFromReader struct {
    	reset  func() (io.Reader, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:06:17 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. src/debug/plan9obj/file.go

    // Data reads and returns the contents of the Plan 9 a.out section.
    func (s *Section) Data() ([]byte, error) {
    	return saferio.ReadDataAt(s.sr, uint64(s.Size), 0)
    }
    
    // Open returns a new ReadSeeker reading the Plan 9 a.out section.
    func (s *Section) Open() io.ReadSeeker { return io.NewSectionReader(s.sr, 0, 1<<63-1) }
    
    // A Symbol represents an entry in a Plan 9 a.out symbol table section.
    type Sym struct {
    	Value uint64
    	Type  rune
    	Name  string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    	req.Header.Set("Authorization", auth)
    
    	return signature, nil
    }
    
    // Returns new HTTP request object.
    func newTestStreamingRequest(method, urlStr string, dataLength, chunkSize int64, body io.ReadSeeker) (*http.Request, error) {
    	if method == "" {
    		method = http.MethodPost
    	}
    
    	req, err := http.NewRequest(method, urlStr, nil)
    	if err != nil {
    		return nil, err
    	}
    
    	if body == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  6. src/debug/macho/file.go

    }
    
    // Data reads and returns the contents of the segment.
    func (s *Segment) Data() ([]byte, error) {
    	return saferio.ReadDataAt(s.sr, s.Filesz, 0)
    }
    
    // Open returns a new ReadSeeker reading the segment.
    func (s *Segment) Open() io.ReadSeeker { return io.NewSectionReader(s.sr, 0, 1<<63-1) }
    
    type SectionHeader struct {
    	Name   string
    	Seg    string
    	Addr   uint64
    	Size   uint64
    	Offset uint32
    	Align  uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  7. src/archive/tar/reader_test.go

    				tr = NewReader(&reader{strings.NewReader(v.input)})
    				s1, s2 = "io.Reader", "manual"
    			case 2:
    				tr = NewReader(&readSeeker{strings.NewReader(v.input)})
    				s1, s2 = "io.ReadSeeker", "auto"
    			case 3:
    				tr = NewReader(&readSeeker{strings.NewReader(v.input)})
    				s1, s2 = "io.ReadSeeker", "manual"
    			case 4:
    				tr = NewReader(&readBadSeeker{strings.NewReader(v.input)})
    				s1, s2 = "ReadBadSeeker", "auto"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  8. src/internal/coverage/decodecounter/decodecounterfile.go

    	goos     string // GOOS setting from run that produced counter data
    	mr       io.ReadSeeker
    	hdr      coverage.CounterFileHeader
    	ftr      coverage.CounterFileFooter
    	shdr     coverage.CounterSegmentHeader
    	u32b     []byte
    	u8b      []byte
    	fcnCount uint32
    	segCount uint32
    	debug    bool
    }
    
    func NewCounterDataReader(fn string, rs io.ReadSeeker) (*CounterDataReader, error) {
    	cdr := &CounterDataReader{
    		mr:   rs,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 15:29:54 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  9. src/debug/pe/symbol.go

    //
    // At the moment this package only provides APIs for looking at
    // aux symbols of format 5 (associated with section definition symbols).
    func readCOFFSymbols(fh *FileHeader, r io.ReadSeeker) ([]COFFSymbol, error) {
    	if fh.PointerToSymbolTable == 0 {
    		return nil, nil
    	}
    	if fh.NumberOfSymbols <= 0 {
    		return nil, nil
    	}
    	_, err := r.Seek(int64(fh.PointerToSymbolTable), io.SeekStart)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  10. src/net/http/fs.go

    // ServeContent uses it to handle requests using If-Match, If-None-Match, or If-Range.
    //
    // Note that [*os.File] implements the [io.ReadSeeker] interface.
    func ServeContent(w ResponseWriter, req *Request, name string, modtime time.Time, content io.ReadSeeker) {
    	sizeFunc := func() (int64, error) {
    		size, err := content.Seek(0, io.SeekEnd)
    		if err != nil {
    			return 0, errSeeker
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top