C# Class Mono.Cecil.Cil.CodeWriter

Inheritance: ByteBuffer
ファイルを表示 Open project: jbevain/cecil Class Usage Examples

Public Methods

Method Description
CodeWriter ( MetadataBuilder metadata ) : System
GetStandAloneSignature ( CallSite call_site ) : Mono.Cecil.Metadata.MetadataToken
GetStandAloneSignature ( Collection variables ) : Mono.Cecil.Metadata.MetadataToken
WriteMethodBody ( MethodDefinition method ) : UInt32

Private Methods

Method Description
AddExceptionStackSize ( Instruction handler_start, int>.Dictionary &stack_sizes ) : void
Align ( int align ) : void
BeginMethod ( ) : UInt32
ComputeExceptionHandlerStackSize ( int>.Dictionary &stack_sizes ) : void
ComputeHeader ( ) : void
ComputePopDelta ( StackBehaviour pop_behavior, int &stack_size ) : void
ComputePushDelta ( StackBehaviour push_behaviour, int &stack_size ) : void
ComputeStackDelta ( Instruction instruction, int &stack_size ) : void
ComputeStackSize ( Instruction instruction, int>.Dictionary &stack_sizes, int &stack_size, int &max_stack ) : void
ComputeStackSize ( Instruction instruction, int &stack_size ) : void
CopyBranchStackSize ( int>.Dictionary &stack_sizes, Instruction target, int stack_size ) : void
CopyBranchStackSize ( Instruction instruction, int>.Dictionary &stack_sizes, int stack_size ) : void
EndMethod ( ) : void
GetParameterIndex ( ParameterDefinition parameter ) : int
GetStandAloneSignatureToken ( uint signature ) : Mono.Cecil.Metadata.MetadataToken
GetTargetOffset ( Instruction instruction ) : int
GetUserStringIndex ( string @string ) : uint
GetVariableIndex ( Mono.Cecil.Cil.VariableDefinition variable ) : int
IsEmptyMethodBody ( MethodBody body ) : bool
IsFatRange ( Instruction start, Instruction end ) : bool
IsUnresolved ( MethodDefinition method ) : bool
RequiresFatHeader ( ) : bool
RequiresFatSection ( Collection handlers ) : bool
WriteExceptionHandlerSpecific ( Mono.Cecil.Cil.ExceptionHandler handler ) : void
WriteExceptionHandlers ( ) : void
WriteExceptionHandlers ( Collection handlers, Action write_entry, Action write_length ) : void
WriteFatHeader ( ) : void
WriteFatSection ( Collection handlers ) : void
WriteInstructions ( ) : void
WriteMetadataToken ( Mono.Cecil.Metadata.MetadataToken token ) : void
WriteOpCode ( Mono.Cecil.Cil.OpCode opcode ) : void
WriteOperand ( Instruction instruction ) : void
WriteResolvedMethodBody ( MethodDefinition method ) : void
WriteSmallSection ( Collection handlers ) : void
WriteUnresolvedMethodBody ( MethodDefinition method ) : void

Method Details

CodeWriter() public method

public CodeWriter ( MetadataBuilder metadata ) : System
metadata MetadataBuilder
return System

GetStandAloneSignature() public method

public GetStandAloneSignature ( CallSite call_site ) : Mono.Cecil.Metadata.MetadataToken
call_site CallSite
return Mono.Cecil.Metadata.MetadataToken

GetStandAloneSignature() public method

public GetStandAloneSignature ( Collection variables ) : Mono.Cecil.Metadata.MetadataToken
variables Collection
return Mono.Cecil.Metadata.MetadataToken

WriteMethodBody() public method

public WriteMethodBody ( MethodDefinition method ) : UInt32
method MethodDefinition
return System.UInt32