CallConvCdecl Classe
Definição
Indica que um método deve usar a convenção de chamada Cdecl
.Indicates that a method should use the Cdecl
calling convention.
public ref class CallConvCdecl
public class CallConvCdecl
[System.Runtime.InteropServices.ComVisible(true)]
public class CallConvCdecl
type CallConvCdecl = class
[<System.Runtime.InteropServices.ComVisible(true)>]
type CallConvCdecl = class
Public Class CallConvCdecl
- Herança
-
CallConvCdecl
- Atributos
Comentários
O chamador limpa a pilha.The caller cleans the stack. Isso permite chamar funções com varargs
.This enables calling functions with varargs
.
Essa classe é usada apenas como um modificador personalizado da assinatura de metadados de um método.This class is used only as a custom modifier of the metadata signature of a method.
As classes no System.Runtime.CompilerServices são para uso somente para escritores de compilador.The classes in System.Runtime.CompilerServices are for compiler writers' use only.
Os compiladores emitem modificadores personalizados dentro de metadados para alterar a forma como o compilador JIT (just-in-time) manipula valores quando o comportamento padrão não é apropriado.Compilers emit custom modifiers within metadata to change the way that the just-in-time (JIT) compiler handles values when the default behavior is not appropriate. Quando o compilador JIT encontra um modificador personalizado, ele manipula o valor da maneira que o modificador especifica.When the JIT compiler encounters a custom modifier, it handles the value in the way that the modifier specifies. Os compiladores podem aplicar modificadores personalizados a métodos, parâmetros e valores de retorno.Compilers can apply custom modifiers to methods, parameters, and return values. O compilador JIT deve responder aos modificadores necessários, mas pode ignorar modificadores opcionais.The JIT compiler must respond to required modifiers but can ignore optional modifiers. Um compilador C++ pode emitir um modificador personalizado para descrever como um byte deve ser tratado em casos em que o compilador JIT trata bytes de uma maneira que não é compatível com C++ por padrão.A C++ compiler could emit a custom modifier to describe how a byte should be treated in cases where the JIT compiler treats bytes in a manner that is not compatible with C++ by default.
Você pode emitir modificadores personalizados em metadados usando uma das seguintes técnicas:You can emit custom modifiers into metadata using one of the following techniques:
Usando métodos na TypeBuilder classe, como, DefineMethod , DefineField DefineConstructor e DefineProperty .Using methods in the TypeBuilder class such as DefineMethod, DefineField, DefineConstructor, and DefineProperty.
Gerando um arquivo de instruções MSIL (Microsoft Intermediate Language) que contém chamadas para
modopt
emodreq
, e montando o arquivo com o Ilasm.exe (Il assembler).Generating a Microsoft intermediate language (MSIL) instruction file that contains calls tomodopt
andmodreq
, and assembling the file with the Ilasm.exe (IL Assembler).Usando a API de reflexão não gerenciada.Using the unmanaged reflection API.
Construtores
CallConvCdecl() |
Inicializa uma nova instância da classe CallConvCdecl.Initializes a new instance of the CallConvCdecl class. |
Métodos
Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |