MethodBodyStreamEncoder 结构

定义

为方法主体流提供编码器。Provides an encoder for a method body stream.

public value class MethodBodyStreamEncoder
public struct MethodBodyStreamEncoder
type MethodBodyStreamEncoder = struct
Public Structure MethodBodyStreamEncoder
继承
MethodBodyStreamEncoder

构造函数

MethodBodyStreamEncoder(BlobBuilder)

属性

Builder

方法

AddMethodBody(InstructionEncoder, Int32, StandaloneSignatureHandle, MethodBodyAttributes)

对方法主体进行编码,并将其添加到方法主体流中。Encodes a method body and adds it to the method body stream.

AddMethodBody(InstructionEncoder, Int32, StandaloneSignatureHandle, MethodBodyAttributes, Boolean)

通过使用提供的指令编码器、最大堆栈大小、局部变量的签名句柄、方法主体属性并允许指示该方法是否应从动态本地内存池分配,对方法主体进行编码,并将其添加到方法主体流。Encodes a method body and adds it to the method body stream, using the provided instruction encoder, maximum stack size, local variables' signature handle, method body attributes, and allowing to indicate whether the method should allocate from the dynamic local memory pool or not.

AddMethodBody(Int32, Int32, Int32, Boolean, StandaloneSignatureHandle, MethodBodyAttributes)

通过使用提供的代码大小、最大堆栈大小、异常区域的数目、局部变量的签名句柄、方法主体属性并允许指示是否应以小格式编码异常区域,对方法主体进行编码,并将其添加到方法主体流。Encodes a method body and adds it to the method body stream, using the provided code size, maximum stack size, number of exception regions, local variables' signature handle, method body attributes and allowing to indicate whether the exception regions should be encoded in small format or not.

AddMethodBody(Int32, Int32, Int32, Boolean, StandaloneSignatureHandle, MethodBodyAttributes, Boolean)

通过使用提供的代码大小、最大堆栈大小、异常区域的数目、局部变量的签名句柄、方法主体属性,允许指示是否应以小格式编码异常区域,并允许指示方法是否应从动态本地内存池分配,对方法主体进行编码,并将其添加到方法主体流。Encodes a method body and adds it to the method body stream, using the provided code size, maximum stack size, number of exception regions, local variables' signature handle, method body attributes, allowing to indicate whether the exception regions should be encoded in small format or not, and allowing to indicate whether the method should allocate from the dynamic local memory pool or not.

适用于