C# Class Inazuma.Mono.Cecil.Cil.CodeWriter

Inheritance: ByteBuffer
Datei anzeigen Open project: mayuki/Inazuma Class Usage Examples

Public Methods

Method Description
CodeWriter ( MetadataBuilder metadata ) : System
GetStandAloneSignature ( CallSite call_site ) : MetadataToken
GetStandAloneSignature ( Collection variables ) : 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
GetLocalVarToken ( ByteBuffer buffer, MethodSymbols symbols ) : MetadataToken
GetParameterIndex ( ParameterDefinition parameter ) : int
GetStandAloneSignatureToken ( uint signature ) : MetadataToken
GetTargetOffset ( Instruction instruction ) : int
GetUserStringIndex ( string @string ) : uint
GetVariableIndex ( VariableDefinition variable ) : int
IsEmptyMethodBody ( MethodBody body ) : bool
IsFatRange ( Instruction start, Instruction end ) : bool
IsUnresolved ( MethodDefinition method ) : bool
RequiresFatHeader ( ) : bool
RequiresFatSection ( Collection handlers ) : bool
WriteExceptionHandlerSpecific ( ExceptionHandler handler ) : void
WriteExceptionHandlers ( ) : void
WriteExceptionHandlers ( Collection handlers, Action write_entry, Action write_length ) : void
WriteFatHeader ( ) : void
WriteFatSection ( Collection handlers ) : void
WriteInstructions ( ) : void
WriteMetadataToken ( MetadataToken token ) : void
WriteOpCode ( 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 ) : MetadataToken
call_site CallSite
return MetadataToken

GetStandAloneSignature() public method

public GetStandAloneSignature ( Collection variables ) : MetadataToken
variables Collection
return MetadataToken

WriteMethodBody() public method

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