• 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
165 b := writeBuf(buf[:])
166 b.uint32(uint32(directoryEndSignature))
167 b = b[4:] // skip over disk number and first disk number (2x uint16)
168 b.uint16(uint16(records)) // number of entries this disk
169 b.uint16(uint16(records)) // number of entries total
170 b.uint32(uint32(size)) // size of directory
171 b.uint32(uint32(offset)) // start of directory
263 b := writeBuf(buf[:])
264 b.uint32(uint32(fileHeaderSignature))
265 b.uint16(h.ReaderVersion)
266 b.uint16(h.Flags)
267 b.uint16(h.Method)
268 b.uint16(h.ModifiedTime)
269 b.uint16(h.ModifiedDate)
273 b.uint32(0) // crc32,
274 b.uint32(0) // compressed size,
275 b.uint32(0) // uncompressed size
277 b.uint32(h.CRC32)
292 b.uint32(compressedSize)
293 b.uint32(uncompressedSize)
296 b.uint16(uint16(len(h.Name)))
297 b.uint16(uint16(len(h.Extra)))
383 b := writeBuf(buf)
384 b.uint32(dataDescriptorSignature) // de-facto standard, required by OS X
385 b.uint32(fh.CRC32)
387 b.uint64(fh.CompressedSize64)
388 b.uint64(fh.UncompressedSize64)
390 b.uint32(fh.CompressedSize)
391 b.uint32(fh.UncompressedSize)
420 func (b *writeBuf) uint16(v uint16) {
421 binary.LittleEndian.PutUint16(*b, v)
422 *b = (*b)[2:]
425 func (b *writeBuf) uint32(v uint32) {
426 binary.LittleEndian.PutUint32(*b, v)
427 *b = (*b)[4:]
430 func (b *writeBuf) uint64(v uint64) {
431 binary.LittleEndian.PutUint64(*b, v)
432 *b = (*b)[8:]