Classes | Functions | Variables
bloaty::pe Namespace Reference

Classes

class  PeFile
 
class  PEObjectFile
 
class  Section
 

Functions

void AddCatchAll (const PeFile &pe, RangeSink *sink)
 
template<class Func >
void ForEachSection (const PeFile &pe, Func &&section_func)
 
void ParseSections (const PeFile &pe, RangeSink *sink)
 
bool ReadMagic (const string_view &data)
 

Variables

constexpr uint16_t dos_magic = 0x5A4D
 
constexpr size_t kBaseRelocationBlockSize = 8
 
constexpr size_t kHeader16Size = 20
 Sizes in bytes of various things in the COFF format. More...
 
constexpr size_t kHeader32Size = 56
 
constexpr size_t kImportDirectoryTableEntrySize = 20
 
constexpr size_t kNameSize = 8
 
constexpr size_t kRelocationSize = 10
 
constexpr size_t kResourceDataEntrySize = 16
 
constexpr size_t kResourceDirectoryEntriesSize = 8
 
constexpr size_t kResourceDirectoryTableSize = 16
 
constexpr size_t kSectionSize = 40
 
constexpr size_t kSymbol16Size = 18
 
constexpr size_t kSymbol32Size = 20
 

Function Documentation

◆ AddCatchAll()

void bloaty::pe::AddCatchAll ( const PeFile pe,
RangeSink sink 
)

Definition at line 203 of file pe.cc.

◆ ForEachSection()

template<class Func >
void bloaty::pe::ForEachSection ( const PeFile pe,
Func &&  section_func 
)

Definition at line 184 of file pe.cc.

◆ ParseSections()

void bloaty::pe::ParseSections ( const PeFile pe,
RangeSink sink 
)

Definition at line 191 of file pe.cc.

◆ ReadMagic()

bool bloaty::pe::ReadMagic ( const string_view data)

Definition at line 263 of file pe.cc.

Variable Documentation

◆ dos_magic

constexpr uint16_t bloaty::pe::dos_magic = 0x5A4D
constexpr

Definition at line 24 of file pe.cc.

◆ kBaseRelocationBlockSize

constexpr size_t bloaty::pe::kBaseRelocationBlockSize = 8
constexpr

Definition at line 35 of file pe.cc.

◆ kHeader16Size

constexpr size_t bloaty::pe::kHeader16Size = 20
constexpr

Sizes in bytes of various things in the COFF format.

Definition at line 28 of file pe.cc.

◆ kHeader32Size

constexpr size_t bloaty::pe::kHeader32Size = 56
constexpr

Definition at line 29 of file pe.cc.

◆ kImportDirectoryTableEntrySize

constexpr size_t bloaty::pe::kImportDirectoryTableEntrySize = 20
constexpr

Definition at line 36 of file pe.cc.

◆ kNameSize

constexpr size_t bloaty::pe::kNameSize = 8
constexpr

Definition at line 30 of file pe.cc.

◆ kRelocationSize

constexpr size_t bloaty::pe::kRelocationSize = 10
constexpr

Definition at line 34 of file pe.cc.

◆ kResourceDataEntrySize

constexpr size_t bloaty::pe::kResourceDataEntrySize = 16
constexpr

Definition at line 39 of file pe.cc.

◆ kResourceDirectoryEntriesSize

constexpr size_t bloaty::pe::kResourceDirectoryEntriesSize = 8
constexpr

Definition at line 38 of file pe.cc.

◆ kResourceDirectoryTableSize

constexpr size_t bloaty::pe::kResourceDirectoryTableSize = 16
constexpr

Definition at line 37 of file pe.cc.

◆ kSectionSize

constexpr size_t bloaty::pe::kSectionSize = 40
constexpr

Definition at line 33 of file pe.cc.

◆ kSymbol16Size

constexpr size_t bloaty::pe::kSymbol16Size = 18
constexpr

Definition at line 31 of file pe.cc.

◆ kSymbol32Size

constexpr size_t bloaty::pe::kSymbol32Size = 20
constexpr

Definition at line 32 of file pe.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:58