- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for OpenRaw (0.07 sec)
-
src/archive/zip/reader_test.go
} // Check that OpenRaw returns the correct byte segment rw, err := f.OpenRaw() if err != nil { t.Errorf("%v: OpenRaw error=%v", f.Name, err) return } start, err := f.DataOffset() if err != nil { t.Errorf("%v: DataOffset error=%v", f.Name, err) return } got, err := io.ReadAll(rw) if err != nil { t.Errorf("%v: OpenRaw ReadAll error=%v", f.Name, err) return }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0) -
src/archive/zip/reader.go
} rc = &checksumReader{ rc: rc, hash: crc32.NewIEEE(), f: f, desr: desr, } return rc, nil } // OpenRaw returns a [Reader] that provides access to the [File]'s contents without // decompression. func (f *File) OpenRaw() (io.Reader, error) { bodyOffset, err := f.findBodyOffset() if err != nil { return nil, err }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Sat Aug 03 01:05:29 UTC 2024 - 28.1K bytes - Viewed (0) -
src/archive/zip/writer.go
} // Copy copies the file f (obtained from a [Reader]) into w. It copies the raw // form directly bypassing decompression, compression, and validation. func (w *Writer) Copy(f *File) error { r, err := f.OpenRaw() if err != nil { return err } // Copy the FileHeader so w doesn't store a pointer to the data // of f's entire archive. See #65499. fh := f.FileHeader fw, err := w.CreateRaw(&fh) if err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 19.4K bytes - Viewed (0)