PEReader Klasa
Definicja
Udostępnia czytnik dla plików Portable format wykonywalny (PE).Provides a reader for Portable Executable format (PE) files.
public ref class PEReader sealed : IDisposable
public sealed class PEReader : IDisposable
type PEReader = class
interface IDisposable
Public NotInheritable Class PEReader
Implements IDisposable
- Dziedziczenie
-
PEReader
- Implementuje
Uwagi
Implementacja jest bezpieczna wątkowo.The implementation is thread-safe. Oznacza to, że wiele wątków może jednocześnie odczytywać dane z czytnika.That is, multiple threads can read data from the reader in parallel. Usuwanie czytnika nie jest bezpieczne dla wątków (zobacz Dispose() ).Disposal of the reader is not thread-safe (see Dispose()).
Konstruktory
PEReader(Byte*, Int32) |
Tworzy przenośny czytnik plików wykonywalnych za pośrednictwem obrazu PE przechowywanego w pamięci.Creates a Portable Executable reader over a PE image stored in memory. |
PEReader(Byte*, Int32, Boolean) |
Tworzy przenośny czytnik plików wykonywalnych za pośrednictwem obrazu PE przechowywanego w pamięci.Creates a Portable Executable reader over a PE image stored in memory. Flaga wskazuje, czy obraz został już załadowany do pamięci.A flag indicates whether the image has already been loaded into memory. |
PEReader(ImmutableArray<Byte>) |
Tworzy przenośny czytnik plików wykonywalnych za pośrednictwem obrazu PE przechowywanego w tablicy bajtów.Creates a Portable Executable reader over a PE image stored in a byte array. |
PEReader(Stream) |
Tworzy przenośny czytnik plików wykonywalnych za pośrednictwem obrazu PE przechowywanego w strumieniu.Creates a Portable Executable reader over a PE image stored in a stream. |
PEReader(Stream, PEStreamOptions) |
Tworzy przenośny czytnik plików wykonywalnych za pośrednictwem obrazu PE przechowywanego w strumieniu, rozpoczynając od jego bieżącej pozycji i kończąc na końcu strumienia.Creates a Portable Executable reader over a PE image stored in a stream beginning at its current position and ending at the end of the stream. |
PEReader(Stream, PEStreamOptions, Int32) |
Tworzy przenośny czytnik wykonywalny dla obrazu PE o danym rozmiarze rozpoczynając od bieżącego położenia strumienia.Creates a Portable Executable reader over a PE image of the given size beginning at the stream's current position. |
Właściwości
HasMetadata |
Pobiera wartość wskazującą, czy obraz PE zawiera metadane interfejsu wiersza polecenia.Gets a value that indicates if the PE image contains CLI metadata. |
IsEntireImageAvailable |
Pobiera wartość wskazującą, czy czytnik może uzyskać dostęp do całego obrazu PE.Gets a value that indicates if the reader can access the entire PE image. |
IsLoadedImage |
Pobiera wartość wskazującą, czy obraz PE został załadowany do pamięci przez moduł ładujący systemu operacyjnego.Gets a value that indicates if the PE image has been loaded into memory by the OS loader. |
PEHeaders |
Pobiera nagłówki PE.Gets the PE headers. |
Metody
Dispose() |
Usuwa całą pamięć przydzieloną przez czytelnika.Disposes all memory allocated by the reader. |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetEntireImage() |
Pobiera PEMemoryBlock obiekt zawierający cały obraz PE.Gets a PEMemoryBlock object containing the entire PE image. |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetMetadata() |
Ładuje sekcję PE, która zawiera metadane interfejsu wiersza polecenia.Loads a PE section that contains CLI metadata. |
GetSectionData(Int32) |
Ładuje sekcję PE, która zawiera określony względny adres wirtualny do pamięci i zwraca blok pamięci, który zaczyna się od tego adresu i kończy się na końcu sekcji zawierającej.Loads the PE section that contains the specified relative virtual address into memory and returns a memory block that starts at that address and ends at the end of the containing section. |
GetSectionData(String) |
Ładuje sekcję PE z określoną nazwą do pamięci i zwraca blok pamięci, który obejmuje sekcję.Loads the PE section with the specified name into memory and returns a memory block that spans the section. |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
ReadCodeViewDebugDirectoryData(DebugDirectoryEntry) |
Odczytuje dane wskazywane przez określony wpis w katalogu debugowania i interpretuje je jako CodeView.Reads the data pointed to by the specified Debug Directory entry and interprets it as CodeView. |
ReadDebugDirectory() |
Odczytuje wszystkie wpisy tabeli katalogu debugowania.Reads all Debug Directory table entries. |
ReadEmbeddedPortablePdbDebugDirectoryData(DebugDirectoryEntry) |
Odczytuje dane wskazywane przez określony wpis w katalogu debugowania i interpretuje je jako osadzony przenośny obiekt BLOB PDB.Reads the data pointed to by the specified Debug Directory entry and interprets it as an Embedded Portable PDB blob. |
ReadPdbChecksumDebugDirectoryData(DebugDirectoryEntry) |
Odczytuje dane wskazywane przez określony wpis w katalogu debugowania i interpretuje je jako wpis sumy kontrolnej PDB.Reads the data pointed to by the specified Debug Directory entry and interprets it as a PDB Checksum entry. |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
TryOpenAssociatedPortablePdb(String, Func<String,Stream>, MetadataReaderProvider, String) |
Otwiera przenośny plik PDB skojarzony z tym obrazem PE.Opens a Portable PDB associated with this PE image. |
Metody rozszerzania
GetMetadataReader(PEReader) |
Pobiera MetadataReader z PEReader .Gets a MetadataReader from a PEReader. |
GetMetadataReader(PEReader, MetadataReaderOptions) |
Pobiera czytnik metadanych z określoną konfiguracją odczytywania metadanych z PEReader .Gets a metadata reader with the specified metadata reading configuration from a PEReader. |
GetMetadataReader(PEReader, MetadataReaderOptions, MetadataStringDecoder) |
Pobiera czytnik metadanych z określoną metadanymi odczytywania konfiguracji i konfiguracji kodowania z PEReader .Gets a metadata reader with the specified metadata reading configuration and encoding configuration from a PEReader. |
GetMethodBody(PEReader, Int32) |
Zwraca blok treści metody z określonym względnym adresem wirtualnym (RVA);Returns a body block of a method with the specified Relative Virtual Address (RVA); |