LLVM 20.0.0git
Public Member Functions | List of all members
llvm::object::ResourceSectionRef Class Reference

#include "llvm/Object/COFF.h"

Public Member Functions

 ResourceSectionRef ()=default
 
 ResourceSectionRef (StringRef Ref)
 
Error load (const COFFObjectFile *O)
 
Error load (const COFFObjectFile *O, const SectionRef &S)
 
Expected< ArrayRef< UTF16 > > getEntryNameString (const coff_resource_dir_entry &Entry)
 
Expected< const coff_resource_dir_table & > getEntrySubDir (const coff_resource_dir_entry &Entry)
 
Expected< const coff_resource_data_entry & > getEntryData (const coff_resource_dir_entry &Entry)
 
Expected< const coff_resource_dir_table & > getBaseTable ()
 
Expected< const coff_resource_dir_entry & > getTableEntry (const coff_resource_dir_table &Table, uint32_t Index)
 
Expected< StringRefgetContents (const coff_resource_data_entry &Entry)
 

Detailed Description

Definition at line 1398 of file COFF.h.

Constructor & Destructor Documentation

◆ ResourceSectionRef() [1/2]

llvm::object::ResourceSectionRef::ResourceSectionRef ( )
default

◆ ResourceSectionRef() [2/2]

llvm::object::ResourceSectionRef::ResourceSectionRef ( StringRef  Ref)
inlineexplicit

Definition at line 1401 of file COFF.h.

Member Function Documentation

◆ getBaseTable()

Expected< const coff_resource_dir_table & > ResourceSectionRef::getBaseTable ( )

Definition at line 2248 of file COFFObjectFile.cpp.

Referenced by llvm::object::WindowsResourceParser::parse().

◆ getContents()

Expected< StringRef > ResourceSectionRef::getContents ( const coff_resource_data_entry Entry)

◆ getEntryData()

Expected< const coff_resource_data_entry & > ResourceSectionRef::getEntryData ( const coff_resource_dir_entry Entry)

Definition at line 2243 of file COFFObjectFile.cpp.

References assert().

◆ getEntryNameString()

Expected< ArrayRef< UTF16 > > ResourceSectionRef::getEntryNameString ( const coff_resource_dir_entry Entry)

Definition at line 2199 of file COFFObjectFile.cpp.

◆ getEntrySubDir()

Expected< const coff_resource_dir_table & > ResourceSectionRef::getEntrySubDir ( const coff_resource_dir_entry Entry)

Definition at line 2237 of file COFFObjectFile.cpp.

References assert().

◆ getTableEntry()

Expected< const coff_resource_dir_entry & > ResourceSectionRef::getTableEntry ( const coff_resource_dir_table Table,
uint32_t  Index 
)

◆ load() [1/2]

Error ResourceSectionRef::load ( const COFFObjectFile O)

Definition at line 2263 of file COFFObjectFile.cpp.

References llvm::createStringError(), load, Name, and llvm::object::parse_failed.

◆ load() [2/2]

Error ResourceSectionRef::load ( const COFFObjectFile O,
const SectionRef S 
)

The documentation for this class was generated from the following files: