Versions in this module Expand all Collapse all v8 v8.0.1 May 14, 2024 v8.0.0 May 8, 2024 Changes in this version + const TarMemberCD + const TarMemberZip + func FindDirectory(r io.ReaderAt, size int64) (int64, error) + func ZipToTar(r *os.File, w io.Writer) error + type Directory struct + DirLoc int64 + File []*File + Size int64 + func Read(r io.ReaderAt, size int64) (*Directory, error) + func ReadStream(r io.Reader, size int64, cd []byte) (*Directory, error) + func ReadWithDirectory(r io.ReaderAt, size int64, cd []byte) (*Directory, error) + func ReadZipTar(r io.Reader) (*Directory, error) + func (d *Directory) AddFile(f *File) (*File, error) + func (d *Directory) GetOriginalDirectory(trim bool) (cdEntries, endOfDir []byte, err error) + func (d *Directory) Mangle(callback MangleFunc) (*Mangler, error) + func (d *Directory) NewFile(name string, extra, contents []byte, w io.Writer, mtime time.Time, ...) (*File, error) + func (d *Directory) NextFileOffset() (int64, error) + func (d *Directory) Truncate(n int, body, dir io.Writer) error + func (d *Directory) WriteDirectory(wcd, weod io.Writer, forceZip64 bool) error + type File struct + CRC32 uint32 + Comment []byte + CompressedSize uint64 + CreatorVersion uint16 + ExternalAttrs uint32 + Extra []byte + Flags uint16 + InternalAttrs uint16 + Method uint16 + ModifiedDate uint16 + ModifiedTime uint16 + Name string + Offset uint64 + ReaderVersion uint16 + UncompressedSize uint64 + func (f *File) Digest(hash crypto.Hash) ([]byte, error) + func (f *File) Dump(w io.Writer) (int64, error) + func (f *File) GetDataDescriptor() ([]byte, error) + func (f *File) GetDirectoryHeader() ([]byte, error) + func (f *File) GetLocalHeader() ([]byte, error) + func (f *File) GetTotalSize() (int64, error) + func (f *File) ModTime() time.Time + func (f *File) Open() (io.ReadCloser, error) + func (f *File) OpenAndTeeRaw(sink io.Writer) (*Reader, error) + type MangleFile struct + func (f *MangleFile) Delete() + type MangleFunc func(*MangleFile) error + type Mangler struct + func (m *Mangler) MakePatch(forceZip64 bool) (*binpatch.PatchSet, error) + func (m *Mangler) NewFile(name string, contents []byte) error + type Reader struct + func (r *Reader) Close() error + func (r *Reader) Read(d []byte) (int, error) Other modules containing this package github.com/sassoftware/relic github.com/sassoftware/relic/v7