- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for OpenRaw (0.14 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) -
api/go1.17.txt
pkg archive/zip, method (*File) OpenRaw() (io.Reader, error) pkg archive/zip, method (*Writer) Copy(*File) error pkg archive/zip, method (*Writer) CreateRaw(*FileHeader) (io.Writer, error) pkg compress/lzw, method (*Reader) Close() error pkg compress/lzw, method (*Reader) Read([]uint8) (int, error) pkg compress/lzw, method (*Reader) Reset(io.Reader, Order, int) pkg compress/lzw, method (*Writer) Close() error
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 18K 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)