Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 8 of 8) sorted by relevance

/build/soong/third_party/zip/
Dandroid.go35 fh := &fileHeader
39 fh.Extra = stripExtras(fh.Extra)
42 FileHeader: fh,
46 if !fh.isZip64() {
52 fh.CompressedSize = uint32(fh.CompressedSize64)
53 fh.UncompressedSize = uint32(fh.UncompressedSize64)
56 if err := writeHeader(w.cw, fh); err != nil {
68 if fh.isZip64() {
75 b.uint32(fh.CRC32)
76 if fh.isZip64() {
[all …]
Dstruct.go100 fh *FileHeader member
103 func (fi headerFileInfo) Name() string { return path.Base(fi.fh.Name) }
105 if fi.fh.UncompressedSize64 > 0 {
106 return int64(fi.fh.UncompressedSize64)
108 return int64(fi.fh.UncompressedSize)
111 func (fi headerFileInfo) ModTime() time.Time { return fi.fh.ModTime() }
112 func (fi headerFileInfo) Mode() os.FileMode { return fi.fh.Mode() }
113 func (fi headerFileInfo) Sys() interface{} { return fi.fh }
122 fh := &FileHeader{
126 fh.SetModTime(fi.ModTime())
[all …]
Dwriter.go204 func (w *Writer) CreateHeader(fh *FileHeader) (io.Writer, error) {
205 fh.Flags |= DataDescriptorFlag // writing a data descriptor
206 return w.createHeaderImpl(fh)
220 func (w *Writer) createHeaderImpl(fh *FileHeader) (io.Writer, error) {
227 if len(w.dir) > 0 && w.dir[len(w.dir)-1].FileHeader == fh {
234 fh.CreatorVersion = fh.CreatorVersion&0xff00 | zipVersion20 // preserve compatibility byte
235 fh.ReaderVersion = zipVersion20
242 comp := w.compressor(fh.Method)
254 FileHeader: fh,
260 if err := writeHeader(w.cw, fh); err != nil {
[all …]
/build/soong/zip/
Dzip_test.go59 func fh(name string, contents []byte, method uint16) zip.FileHeader { func
136 fh("a/a/a", fileA, zip.Deflate),
137 fh("a/a/b", fileB, zip.Deflate),
138 fh("c", fileC, zip.Deflate),
139 fh("[", fileEmpty, zip.Store),
151 fh("a/a", fileA, zip.Deflate),
152 fh("a/b", fileB, zip.Deflate),
166 fh("a/a", fileA, zip.Deflate),
167 fh("a/b", fileB, zip.Deflate),
181 fh("a/a/a", fileA, zip.Store),
[all …]
Dzip.go227 fh *zip.FileHeader member
525 if op.fh.Method == zip.Deflate {
526 currentWriter, err = zipw.CreateCompressedHeader(op.fh)
530 op.fh.CompressedSize64 = op.fh.UncompressedSize64
532 zw, err = zipw.CreateHeaderAndroid(op.fh)
702 fh, buf, err := jar.ManifestFileContents(contents)
709 return z.writeFileContents(fh, reader)
722 fh: header,
799 ze.fh.CRC32 = crc.Sum32()
861 ze.fh.CRC32 = crc.Sum32()
[all …]
/build/soong/jar/
Djar.go93 fh := &zip.FileHeader{
98 fh.SetMode(0644)
99 fh.SetModTime(DefaultTime)
101 return fh, b, nil
/build/soong/cmd/zip2zip/
Dzip2zip.go221 fh := match.File.FileHeader
222 fh.Name = match.newName
223 fh.Method = zip.Store
224 fh.CompressedSize64 = fh.UncompressedSize64
226 zw, err := writer.CreateHeaderAndroid(&fh)
/build/soong/cmd/merge_zips/
Dmerge_zips_test.go285 fh := zip.FileHeader{
288 fh.SetMode(e.mode)
290 w, err := zw.CreateHeader(&fh)