- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 33 for ReadSeeker (0.32 sec)
-
src/net/http/fs_test.go
if f.dir { return 0755 | fs.ModeDir } return 0644 } func (f *fakeFileInfo) String() string { return fs.FormatFileInfo(f) } type fakeFile struct { io.ReadSeeker fi *fakeFileInfo path string // as opened entpos int } func (f *fakeFile) Close() error { return nil } func (f *fakeFile) Stat() (fs.FileInfo, error) { return f.fi, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0) -
src/testing/iotest/reader.go
} n, err := r.Read(make([]byte, 10)) if n != 0 || err != io.EOF { return fmt.Errorf("Read(10) at EOF = %v, %v, want 0, EOF", n, err) } if r, ok := r.(io.ReadSeeker); ok { // Seek(0, 1) should report the current file position (EOF). if off, err := r.Seek(0, 1); off != int64(len(content)) || err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 8K bytes - Viewed (0) -
src/archive/tar/writer.go
} // readFrom populates the content of the current file by reading from r. // The bytes read must match the number of remaining bytes in the current file. // // If the current file is sparse and r is an io.ReadSeeker, // then readFrom uses Seek to skip past holes defined in Header.SparseHoles, // assuming that skipped regions are all NULs. // This always reads the last byte to ensure r is the right size. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
src/debug/elf/file.go
} return f.Sections[link].Data() } // Open returns a new ReadSeeker reading the ELF section. // Even if the section is stored compressed in the ELF file, // the ReadSeeker reads uncompressed data. // // For an [SHT_NOBITS] section, all calls to the opened reader // will return a non-nil error. func (s *Section) Open() io.ReadSeeker { if s.Type == SHT_NOBITS {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 16:49:58 UTC 2024 - 43.1K bytes - Viewed (0) -
cmd/admin-handlers_test.go
testServicesCmdHandler(restartCmd, t) } // buildAdminRequest - helper function to build an admin API request. func buildAdminRequest(queryVal url.Values, method, path string, contentLength int64, bodySeeker io.ReadSeeker) (*http.Request, error, ) { req, err := newTestRequest(method, adminPathPrefix+adminAPIVersionPrefix+path+"?"+queryVal.Encode(), contentLength, bodySeeker) if err != nil { return nil, err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 13.8K bytes - Viewed (0) -
cmd/bucket-policy-handlers_test.go
// test cases with sample input and expected output. testCases := []struct { bucketName string // bucket policy to be set, // set as request body. bucketPolicyReader io.ReadSeeker // length in bytes of the bucket policy being set. policyLen int accessKey string secretKey string // expected Response. expectedRespStatus int }{ // Test case - 1. {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 32.9K bytes - Viewed (0) -
tools/istio-iptables/pkg/dependencies/implementation_linux.go
return syscall.Mount(src, dst, "", syscall.MS_BIND|syscall.MS_RDONLY, "") } func (r *RealDependencies) executeXTables(cmd constants.IptablesCmd, iptVer *IptablesVersion, ignoreErrors bool, stdin io.ReadSeeker, args ...string) error { mode := "without lock" cmdBin := iptVer.CmdToString(cmd) if cmdBin == "" { return fmt.Errorf("called without iptables binary, cannot execute!: %+v", iptVer) } var c *exec.Cmd
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 12 20:49:10 UTC 2024 - 12K bytes - Viewed (0) -
src/io/io.go
} // ReadWriteCloser is the interface that groups the basic Read, Write and Close methods. type ReadWriteCloser interface { Reader Writer Closer } // ReadSeeker is the interface that groups the basic Read and Seek methods. type ReadSeeker interface { Reader Seeker } // ReadSeekCloser is the interface that groups the basic Read, Seek and Close // methods. type ReadSeekCloser interface { Reader
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:34:10 UTC 2024 - 21.6K bytes - Viewed (0) -
src/cmd/go/internal/cache/prog.go
c.outputFile[o] = diskPath } func (c *ProgCache) OutputFile(o OutputID) string { c.mu.Lock() defer c.mu.Unlock() return c.outputFile[o] } func (c *ProgCache) Put(a ActionID, file io.ReadSeeker) (_ OutputID, size int64, _ error) { // Compute output ID. h := sha256.New() if _, err := file.Seek(0, 0); err != nil { return OutputID{}, 0, err } size, err := io.Copy(h, file) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 19:23:25 UTC 2023 - 11.8K bytes - Viewed (0) -
api/go1.3.txt
pkg debug/plan9obj, method (*File) Section(string) *Section pkg debug/plan9obj, method (*File) Symbols() ([]Sym, error) pkg debug/plan9obj, method (*Section) Data() ([]uint8, error) pkg debug/plan9obj, method (*Section) Open() io.ReadSeeker pkg debug/plan9obj, method (Section) ReadAt([]uint8, int64) (int, error) pkg debug/plan9obj, type File struct pkg debug/plan9obj, type File struct, Sections []*Section
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 02 02:45:00 UTC 2014 - 117K bytes - Viewed (0)