PEReader Construtores
Definição
Sobrecargas
| PEReader(ImmutableArray<Byte>) |
Cria um leitor Executável Portátil em uma imagem PE armazenada em uma matriz de bytes.Creates a Portable Executable reader over a PE image stored in a byte array. |
| PEReader(Stream) |
Cria um leitor Executável Portátil em uma imagem PE armazenada em um fluxo.Creates a Portable Executable reader over a PE image stored in a stream. |
| PEReader(Byte*, Int32) |
Cria um leitor Executável Portátil em uma imagem PE armazenada na memória.Creates a Portable Executable reader over a PE image stored in memory. |
| PEReader(Stream, PEStreamOptions) |
Cria um leitor de Executável Portátil em uma imagem PE armazenada em um fluxo, começando em sua posição atual e terminando no final do fluxo.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(Byte*, Int32, Boolean) |
Cria um leitor Executável Portátil em uma imagem PE armazenada na memória.Creates a Portable Executable reader over a PE image stored in memory. Um sinalizador indica se a imagem já foi carregada na memória.A flag indicates whether the image has already been loaded into memory. |
| PEReader(Stream, PEStreamOptions, Int32) |
Cria um leitor de Executável Portátil em uma imagem PE do tamanho fornecido, começando na posição atual do fluxo.Creates a Portable Executable reader over a PE image of the given size beginning at the stream's current position. |
PEReader(ImmutableArray<Byte>)
Cria um leitor Executável Portátil em uma imagem PE armazenada em uma matriz de bytes.Creates a Portable Executable reader over a PE image stored in a byte array.
public:
PEReader(System::Collections::Immutable::ImmutableArray<System::Byte> peImage);
public PEReader (System.Collections.Immutable.ImmutableArray<byte> peImage);
new System.Reflection.PortableExecutable.PEReader : System.Collections.Immutable.ImmutableArray<byte> -> System.Reflection.PortableExecutable.PEReader
Public Sub New (peImage As ImmutableArray(Of Byte))
Parâmetros
- peImage
- ImmutableArray<Byte>
Uma matriz de bytes imutável que representa a imagem PE.An immutable array of bytes representing the PE image.
Exceções
peImage é null.peImage is null.
Comentários
O conteúdo da imagem não é lido durante a construção do PEReaderThe content of the image is not read during the construction of the PEReader
Aplica-se a
PEReader(Stream)
Cria um leitor Executável Portátil em uma imagem PE armazenada em um fluxo.Creates a Portable Executable reader over a PE image stored in a stream.
public:
PEReader(System::IO::Stream ^ peStream);
public PEReader (System.IO.Stream peStream);
new System.Reflection.PortableExecutable.PEReader : System.IO.Stream -> System.Reflection.PortableExecutable.PEReader
Public Sub New (peStream As Stream)
Parâmetros
- peStream
- Stream
Fluxo de imagem PE.PE image stream.
Exceções
peStream é null.peStream is null.
Comentários
A propriedade do fluxo é transferida para o PEReader após a validação bem-sucedida dos argumentos do construtor.Ownership of the stream is transferred to the PEReader upon successful validation of constructor arguments. Ele será Descartado pelo PEReader e o chamador não deve manipulá-lo.It will be disposed by the PEReader and the caller must not manipulate it.
Aplica-se a
PEReader(Byte*, Int32)
Cria um leitor Executável Portátil em uma imagem PE armazenada na memória.Creates a Portable Executable reader over a PE image stored in memory.
public:
PEReader(System::Byte* peImage, int size);
public PEReader (byte* peImage, int size);
new System.Reflection.PortableExecutable.PEReader : nativeptr<byte> * int -> System.Reflection.PortableExecutable.PEReader
Parâmetros
- peImage
- Byte*
Um ponteiro para o início da imagem PE.A pointer to the start of the PE image.
- size
- Int32
O tamanho da imagem PE.The size of the PE image.
Exceções
size é negativo.size is negative.
Comentários
A memória pertence ao chamador e não foi liberada na alienação do PEReader .The memory is owned by the caller and not released on disposal of the PEReader. O chamador é responsável por manter a memória ativa e sem modificações durante o tempo de vida do PEReader .The caller is responsible for keeping the memory alive and unmodified throughout the lifetime of the PEReader.
O conteúdo da imagem não é lido durante a construção do PEReaderThe content of the image is not read during the construction of the PEReader
Aplica-se a
PEReader(Stream, PEStreamOptions)
Cria um leitor de Executável Portátil em uma imagem PE armazenada em um fluxo, começando em sua posição atual e terminando no final do fluxo.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.
public:
PEReader(System::IO::Stream ^ peStream, System::Reflection::PortableExecutable::PEStreamOptions options);
public PEReader (System.IO.Stream peStream, System.Reflection.PortableExecutable.PEStreamOptions options);
new System.Reflection.PortableExecutable.PEReader : System.IO.Stream * System.Reflection.PortableExecutable.PEStreamOptions -> System.Reflection.PortableExecutable.PEReader
Public Sub New (peStream As Stream, options As PEStreamOptions)
Parâmetros
- peStream
- Stream
Um fluxo de imagem PE.A PE image stream.
- options
- PEStreamOptions
Opções especificando como as seções da imagem PE são lidas do fluxo.Options specifying how sections of the PE image are read from the stream.
Exceções
peStream é null.peStream is null.
options tem um valor inválido.options has an invalid value.
Erro ao ler do fluxo (somente ao fazer a pré-busca de dados).Error reading from the stream (only when prefetching data).
PrefetchMetadata é especificado e os cabeçalhos PE da imagem são inválidos.PrefetchMetadata is specified, and the PE headers of the image are invalid.
Comentários
A menos que PEStreamOptions.LeaveOpen seja especificado, a propriedade do fluxo é transferida para o PEReader após a validação bem-sucedida do argumento.Unless PEStreamOptions.LeaveOpen is specified, ownership of the stream is transferred to the PEReader upon successful argument validation. Ele será Descartado pelo PEReader e o chamador não deve manipulá-lo.It will be disposed by the PEReader and the caller must not manipulate it.
A menos que PEStreamOptions.PrefetchMetadata ou PEStreamOptions.PrefetchEntireImage seja especificado, nenhum dado é lido do fluxo durante a construção do PEReader .Unless PEStreamOptions.PrefetchMetadata or PEStreamOptions.PrefetchEntireImage is specified, no data is read from the stream during the construction of the PEReader. Além disso, o fluxo não deve ser manipulado pelo chamador enquanto o PEReader estiver ativo e não Descartado.Furthermore, the stream must not be manipulated by caller while the PEReader is alive and undisposed.
Se options incluir PEStreamOptions.PrefetchMetadata ou PEStreamOptions.PrefetchEntireImage , o PEReader terá lido todos os dados solicitados durante a construção.If options includes PEStreamOptions.PrefetchMetadata or PEStreamOptions.PrefetchEntireImage, the PEReader will have read all of the data requested during construction. Como tal, se PEStreamOptions.LeaveOpen também for especificado, o chamador manterá a propriedade total do fluxo e terá certeza de que ele não será manipulado pela PEReader construção After.As such, if PEStreamOptions.LeaveOpen is also specified, the caller retains full ownership of the stream and is assured that it will not be manipulated by the PEReader after construction.
Aplica-se a
PEReader(Byte*, Int32, Boolean)
Cria um leitor Executável Portátil em uma imagem PE armazenada na memória.Creates a Portable Executable reader over a PE image stored in memory. Um sinalizador indica se a imagem já foi carregada na memória.A flag indicates whether the image has already been loaded into memory.
public:
PEReader(System::Byte* peImage, int size, bool isLoadedImage);
public PEReader (byte* peImage, int size, bool isLoadedImage);
new System.Reflection.PortableExecutable.PEReader : nativeptr<byte> * int * bool -> System.Reflection.PortableExecutable.PEReader
Parâmetros
- peImage
- Byte*
Um ponteiro para o início da imagem PE.A pointer to the start of the PE image.
- size
- Int32
O tamanho da imagem PE.The size of the PE image.
- isLoadedImage
- Boolean
true se a imagem de PE subjacente foi carregada na memória pelo carregador do sistema operacional; caso contrário, false.true if the PE image has been loaded into memory by the OS loader; otherwise, false.
Exceções
size é negativo.size is negative.
Comentários
A memória pertence ao chamador e não é liberada quando o PEReader é Descartado.The memory is owned by the caller and is not released when the PEReader is disposed. O chamador é responsável por manter a memória ativa e sem modificações durante o tempo de vida do PEReader .The caller is responsible for keeping the memory alive and unmodified throughout the lifetime of the PEReader.
O conteúdo da imagem não é lido durante a construção do PEReaderThe content of the image is not read during the construction of the PEReader
Aplica-se a
PEReader(Stream, PEStreamOptions, Int32)
Cria um leitor de Executável Portátil em uma imagem PE do tamanho fornecido, começando na posição atual do fluxo.Creates a Portable Executable reader over a PE image of the given size beginning at the stream's current position.
public:
PEReader(System::IO::Stream ^ peStream, System::Reflection::PortableExecutable::PEStreamOptions options, int size);
public PEReader (System.IO.Stream peStream, System.Reflection.PortableExecutable.PEStreamOptions options, int size);
new System.Reflection.PortableExecutable.PEReader : System.IO.Stream * System.Reflection.PortableExecutable.PEStreamOptions * int -> System.Reflection.PortableExecutable.PEReader
Public Sub New (peStream As Stream, options As PEStreamOptions, size As Integer)
Parâmetros
- peStream
- Stream
Um fluxo de imagem PE.A PE image stream.
- options
- PEStreamOptions
Opções especificando como as seções da imagem PE são lidas do fluxo.Options specifying how sections of the PE image are read from the stream.
- size
- Int32
O tamanho da imagem PE.The PE image size.
Exceções
size é negativo ou ultrapassa o final do fluxo.size is negative or extends past the end of the stream.
Erro ao ler do fluxo (somente ao fazer a pré-busca de dados).Error reading from the stream (only when prefetching data).
PrefetchMetadata é especificado e os cabeçalhos PE da imagem são inválidos.PrefetchMetadata is specified, and the PE headers of the image are invalid.
Comentários
A menos que PEStreamOptions.LeaveOpen seja especificado, a propriedade do fluxo é transferida para o PEReader após a validação bem-sucedida do argumento.Unless PEStreamOptions.LeaveOpen is specified, ownership of the stream is transferred to the PEReader upon successful argument validation. Ele será Descartado pelo PEReader , e o chamador não deverá manipulá-lo.It will be disposed by the PEReader, and the caller must not manipulate it.
A menos que PEStreamOptions.PrefetchMetadata ou PEStreamOptions.PrefetchEntireImage seja especificado, nenhum dado é lido do fluxo durante a construção do PEReader .Unless PEStreamOptions.PrefetchMetadata or PEStreamOptions.PrefetchEntireImage is specified, no data is read from the stream during the construction of the PEReader. Além disso, o fluxo não deve ser manipulado pelo chamador enquanto o PEReader estiver ativo e não Descartado.Furthermore, the stream must not be manipulated by the caller while the PEReader is alive and undisposed.
Se options incluir os PEStreamOptions.PrefetchMetadata PEStreamOptions.PrefetchEntireImage valores ou, o PEReader terá lido todos os dados solicitados durante a construção.If options includes the PEStreamOptions.PrefetchMetadata or PEStreamOptions.PrefetchEntireImage values, the PEReader will have read all of the data requested during construction. Como tal, se PEStreamOptions.LeaveOpen também for especificado, o chamador manterá a propriedade total do fluxo e terá certeza de que ele não será manipulado pela PEReader construção After.As such, if PEStreamOptions.LeaveOpen is also specified, the caller retains full ownership of the stream and is assured that it will not be manipulated by the PEReader after construction.