• 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
180 b := writeBuf(buf[:])
181 b.uint32(uint32(directoryEndSignature))
182 b = b[4:] // skip over disk number and first disk number (2x uint16)
183 b.uint16(uint16(records)) // number of entries this disk
184 b.uint16(uint16(records)) // number of entries total
185 b.uint32(uint32(size)) // size of directory
186 b.uint32(uint32(offset)) // start of directory
278 b := writeBuf(buf[:])
279 b.uint32(uint32(fileHeaderSignature))
280 b.uint16(h.ReaderVersion)
281 b.uint16(h.Flags)
282 b.uint16(h.Method)
283 b.uint16(h.ModifiedTime)
284 b.uint16(h.ModifiedDate)
288 b.uint32(0) // crc32,
289 b.uint32(0) // compressed size,
290 b.uint32(0) // uncompressed size
292 b.uint32(h.CRC32)
319 b.uint32(compressedSize)
320 b.uint32(uncompressedSize)
323 b.uint16(uint16(len(h.Name)))
324 b.uint16(uint16(len(h.Extra)))
410 b := writeBuf(buf)
411 b.uint32(dataDescriptorSignature) // de-facto standard, required by OS X
412 b.uint32(fh.CRC32)
414 b.uint64(fh.CompressedSize64)
415 b.uint64(fh.UncompressedSize64)
417 b.uint32(fh.CompressedSize)
418 b.uint32(fh.UncompressedSize)
447 func (b *writeBuf) uint16(v uint16) {
448 binary.LittleEndian.PutUint16(*b, v)
449 *b = (*b)[2:]
452 func (b *writeBuf) uint32(v uint32) {
453 binary.LittleEndian.PutUint32(*b, v)
454 *b = (*b)[4:]
457 func (b *writeBuf) uint64(v uint64) {
458 binary.LittleEndian.PutUint64(*b, v)
459 *b = (*b)[8:]