• Home
  • Raw
  • Download

Lines Matching refs:b

72 		b := writeBuf(buf[:])
73 b.uint32(uint32(directoryHeaderSignature))
74 b.uint16(h.CreatorVersion)
75 b.uint16(h.ReaderVersion)
76 b.uint16(h.Flags)
77 b.uint16(h.Method)
78 b.uint16(h.ModifiedTime)
79 b.uint16(h.ModifiedDate)
80 b.uint32(h.CRC32)
85 b.uint32(uint32max) // compressed size
86 b.uint32(uint32max) // uncompressed size
98 b.uint32(h.CompressedSize)
99 b.uint32(h.UncompressedSize)
101 b.uint16(uint16(len(h.Name)))
102 b.uint16(uint16(len(h.Extra)))
103 b.uint16(uint16(len(h.Comment)))
104 b = b[4:] // skip disk number start and internal file attr (2x uint16)
105 b.uint32(h.ExternalAttrs)
107 b.uint32(uint32max)
109 b.uint32(uint32(h.offset))
132 b := writeBuf(buf[:])
135 b.uint32(directory64EndSignature)
136 b.uint64(directory64EndLen - 12) // length minus signature (uint32) and length fields (uint64)
137 b.uint16(zipVersion45) // version made by
138 b.uint16(zipVersion45) // version needed to extract
139 b.uint32(0) // number of this disk
140 b.uint32(0) // number of the disk with the start of the central directory
141 b.uint64(records) // total number of entries in the central directory on this disk
142 b.uint64(records) // total number of entries in the central directory
143 b.uint64(size) // size of the central directory
144b.uint64(offset) // offset of start of central directory with respect to the start…
147 b.uint32(directory64LocSignature)
148 b.uint32(0) // number of the disk with the start of the zip64 end of central directory
149 b.uint64(uint64(end)) // relative offset of the zip64 end of central directory record
150 b.uint32(1) // total number of disks
172 b := writeBuf(buf[:])
173 b.uint32(uint32(directoryEndSignature))
174 b = b[4:] // skip over disk number and first disk number (2x uint16)
175 b.uint16(uint16(records)) // number of entries this disk
176 b.uint16(uint16(records)) // number of entries total
177 b.uint32(uint32(size)) // size of directory
178 b.uint32(uint32(offset)) // start of directory
270 b := writeBuf(buf[:])
271 b.uint32(uint32(fileHeaderSignature))
272 b.uint16(h.ReaderVersion)
273 b.uint16(h.Flags)
274 b.uint16(h.Method)
275 b.uint16(h.ModifiedTime)
276 b.uint16(h.ModifiedDate)
280 b.uint32(0) // crc32,
281 b.uint32(0) // compressed size,
282 b.uint32(0) // uncompressed size
284 b.uint32(h.CRC32)
311 b.uint32(compressedSize)
312 b.uint32(uncompressedSize)
315 b.uint16(uint16(len(h.Name)))
316 b.uint16(uint16(len(h.Extra)))
402 b := writeBuf(buf)
403 b.uint32(dataDescriptorSignature) // de-facto standard, required by OS X
404 b.uint32(fh.CRC32)
406 b.uint64(fh.CompressedSize64)
407 b.uint64(fh.UncompressedSize64)
409 b.uint32(fh.CompressedSize)
410 b.uint32(fh.UncompressedSize)
439 func (b *writeBuf) uint16(v uint16) {
440 binary.LittleEndian.PutUint16(*b, v)
441 *b = (*b)[2:]
444 func (b *writeBuf) uint32(v uint32) {
445 binary.LittleEndian.PutUint32(*b, v)
446 *b = (*b)[4:]
449 func (b *writeBuf) uint64(v uint64) {
450 binary.LittleEndian.PutUint64(*b, v)
451 *b = (*b)[8:]