Lines Matching refs:r
31 func OpenFile(r io.ReaderAt) (*File, error) {
32 file, err := elfSymbolsFromFile(r)
35 file, err = machoSymbolsFromFile(r)
38 file, err = peSymbolsFromFile(r)
49 file.r = r
69 _, err := file.r.ReadAt(existing, int64(offset))
82 return copyAndInject(file.r, w, offset, buf)
98 return copyAndInject(file.r, w, offset, buf)
101 func copyAndInject(r io.ReaderAt, w io.Writer, offset uint64, buf []byte) (err error) {
103 _, err = io.Copy(w, io.NewSectionReader(r, 0, int64(offset)))
113 _, err = io.Copy(w, io.NewSectionReader(r, pos, 1<<63-1-pos))
164 r io.ReaderAt member
183 func DumpSymbols(r io.ReaderAt) error {
184 err := dumpElfSymbols(r)
187 err = dumpMachoSymbols(r)
190 err = dumpPESymbols(r)