- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ReadAt (0.05 sec)
-
src/archive/zip/reader_test.go
var z *Reader var err error var raw []byte if zt.Source != nil { rat, size := zt.Source() z, err = NewReader(rat, size) raw = make([]byte, size) if _, err := rat.ReadAt(raw, 0); err != nil { t.Errorf("ReadAt error=%v", err) return } } else { path := filepath.Join("testdata", zt.Name) if zt.Obscured { tf, err := obscuretestdata.DecodeToTempFile(path) if err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0) -
cmd/xl-storage.go
} // Verify it is a regular file, otherwise subsequent Seek is // undefined. if !st.Mode().IsRegular() { return 0, errIsNotRegular } if verifier == nil { n, err = file.ReadAt(buffer, offset) return int64(n), err } h := verifier.algorithm.New() if _, err = io.Copy(h, io.LimitReader(file, offset)); err != nil { return 0, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 91.3K bytes - Viewed (0)