Home | History | Annotate | Download | only in zip

Lines Matching refs:fh

138 	fh *FileHeader
141 func (fi headerFileInfo) Name() string { return path.Base(fi.fh.Name) }
143 if fi.fh.UncompressedSize64 > 0 {
144 return int64(fi.fh.UncompressedSize64)
146 return int64(fi.fh.UncompressedSize)
149 func (fi headerFileInfo) ModTime() time.Time { return fi.fh.ModTime() }
150 func (fi headerFileInfo) Mode() os.FileMode { return fi.fh.Mode() }
151 func (fi headerFileInfo) Sys() interface{} { return fi.fh }
162 fh := &FileHeader{
166 fh.SetModTime(fi.ModTime())
167 fh.SetMode(fi.Mode())
168 if fh.UncompressedSize64 > uint32max {
169 fh.UncompressedSize = uint32max
171 fh.UncompressedSize = uint32(fh.UncompressedSize64)
173 return fh, nil
297 func (fh *FileHeader) isZip64() bool {
298 return fh.CompressedSize64 >= uint32max || fh.UncompressedSize64 >= uint32max