Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for ReadSeeker (0.21 sec)

  1. tools/istio-iptables/pkg/dependencies/interface.go

    type Dependencies interface {
    	// Run runs a command
    	Run(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) error
    	// RunQuietlyAndIgnore runs a command quietly and ignores errors
    	RunQuietlyAndIgnore(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string)
    
    	// DetectIptablesVersion consults the available binaries and in-use tables to determine
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. 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.
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. tools/istio-iptables/pkg/dependencies/stub.go

    }
    
    func (s *DependenciesStub) Run(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) error {
    	s.execute(false /*quietly*/, cmd, iptVer, stdin, args...)
    	_ = s.writeAllToDryRunPath()
    	return nil
    }
    
    func (s *DependenciesStub) RunQuietlyAndIgnore(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) {
    	s.execute(true /*quietly*/, cmd, iptVer, stdin, args...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. cmd/auth-handler_test.go

    		}
    	}
    }
    
    // Provides a fully populated http request instance, fails otherwise.
    func mustNewRequest(method string, urlStr string, contentLength int64, body io.ReadSeeker, t *testing.T) *http.Request {
    	req, err := newTestRequest(method, urlStr, contentLength, body)
    	if err != nil {
    		t.Fatalf("Unable to initialize new http request %s", err)
    	}
    	return req
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/cache.go

    	//
    	// As a special case, if the ReadSeeker is of type noVerifyReadSeeker,
    	// the verification from GODEBUG=goverifycache=1 is skipped.
    	//
    	// After a success call to Get, OutputFile(Entry.OutputID) must
    	// exist on disk for until Close is called (at the end of the process).
    	Put(ActionID, io.ReadSeeker) (_ OutputID, size int64, _ error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/debug/pe/string.go

    	i := bytes.IndexByte(b, 0)
    	if i == -1 {
    		i = len(b)
    	}
    	return string(b[:i])
    }
    
    // StringTable is a COFF string table.
    type StringTable []byte
    
    func readStringTable(fh *FileHeader, r io.ReadSeeker) (StringTable, error) {
    	// COFF string table is located right after COFF symbol table.
    	if fh.PointerToSymbolTable <= 0 {
    		return nil, nil
    	}
    	offset := fh.PointerToSymbolTable + COFFSymbolSize*fh.NumberOfSymbols
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:06:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. tools/istio-iptables/pkg/dependencies/implementation_unspecified.go

    	return ErrNotImplemented
    }
    
    func (r *RealDependencies) executeXTables(cmd constants.IptablesCmd, iptVer *IptablesVersion, ignoreErrors bool, stdin io.ReadSeeker, args ...string) error {
    	return ErrNotImplemented
    }
    
    func shouldUseBinaryForCurrentContext(iptablesBin string) (IptablesVersion, error) {
    	return IptablesVersion{}, ErrNotImplemented
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 08:35:16 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top