Home | History | Annotate | Download | only in pe

Lines Matching defs:File

3 // license that can be found in the LICENSE file.
19 // A File represents an open PE file.
20 type File struct {
31 // Open opens the named file using os.Open and prepares it for use as a PE binary.
32 func Open(name string) (*File, error) {
46 // Close closes the File.
47 // If the File was created using NewFile directly instead of Open,
49 func (f *File) Close() error {
65 // NewFile creates a new File for accessing a PE binary in an underlying reader.
66 func NewFile(r io.ReaderAt) (*File, error) {
67 f := new(File)
80 return nil, fmt.Errorf("Invalid PE COFF file signature of %v.", sign)
93 return nil, fmt.Errorf("Unrecognised COFF file header machine value of 0x%x.", f.FileHeader.Machine)
210 func (f *File) Section(name string) *Section {
219 func (f *File) DWARF() (*dwarf.Data, error) {
261 func (f *File) ImportedSymbols() ([]string, error) {
333 func (f *File) ImportedLibraries() ([]string, error) {