Lines Matching refs:buf
93 buf := bufio.NewReader(rs)
101 err = readDirectoryHeader(f, buf)
232 var buf [fileHeaderLen]byte
233 if _, err := f.zipr.ReadAt(buf[:], f.headerOffset); err != nil {
236 b := readBuf(buf[:])
250 var buf [directoryHeaderLen]byte
251 if _, err := io.ReadFull(r, buf[:]); err != nil {
254 b := readBuf(buf[:])
350 var buf [dataDescriptorLen]byte
362 if _, err := io.ReadFull(r, buf[:4]); err != nil {
366 maybeSig := readBuf(buf[:4])
372 if _, err := io.ReadFull(r, buf[off:12]); err != nil {
375 b := readBuf(buf[:12])
391 var buf []byte
397 buf = make([]byte, int(bLen))
398 if _, err := r.ReadAt(buf, size-bLen); err != nil && err != io.EOF {
401 if p := findSignatureInBlock(buf); p >= 0 {
402 buf = buf[p:]
412 b := readBuf(buf[4:]) // skip signature
453 buf := make([]byte, directory64LocLen)
454 if _, err := r.ReadAt(buf, locOffset); err != nil {
457 b := readBuf(buf)
474 buf := make([]byte, directory64EndLen)
475 if _, err := r.ReadAt(buf, offset); err != nil {
479 b := readBuf(buf)