Lines Matching refs:d
275 d := make([]byte, filenameLen+extraLen+commentLen)
276 if _, err := io.ReadFull(r, d); err != nil {
279 f.Name = string(d[:filenameLen])
280 f.Extra = d[filenameLen : filenameLen+extraLen]
281 f.Comment = string(d[filenameLen+extraLen:])
413 d := &directoryEnd{
422 l := int(d.commentLen)
426 d.comment = string(b[:l])
429 if d.directoryRecords == 0xffff || d.directorySize == 0xffff || d.directoryOffset == 0xffffffff {
432 err = readDirectory64End(r, p, d)
439 if o := int64(d.directoryOffset); o < 0 || o >= size {
442 return d, nil
473 func readDirectory64End(r io.ReaderAt, offset int64, d *directoryEnd) (err error) {
485 d.diskNbr = b.uint32() // number of this disk
486 d.dirDiskNbr = b.uint32() // number of the disk with the start of the central directory
487 d.dirRecordsThisDisk = b.uint64() // total number of entries in the central directory on this disk
488 d.directoryRecords = b.uint64() // total number of entries in the central directory
489 d.directorySize = b.uint64() // size of the central directory
490 …d.directoryOffset = b.uint64() // offset of start of central directory with respect to the star…