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

Inheritance: ByteBuffer
Mostrar archivo Open project: mayuki/Inazuma

Private Properties

Property Type Description
Align void
GetInstruction Instruction
GetInstruction Instruction
GetOriginalToken MetadataToken
IsInSection bool
PatchRawCode void
PatchRawExceptionHandlers void
PatchRawFatMethod void
PatchRawFatSection void
PatchRawSection void
PatchRawSmallSection void
ReadCode void
ReadExceptionHandlerSpecific void
ReadExceptionHandlers void
ReadFatMethod void
ReadFatSection void
ReadMethodBody void
ReadOpCode OpCode
ReadOperand object
ReadSection void
ReadSmallSection void
ResolveBranches void

Public Methods

Method Description
CodeReader ( Section section, MetadataReader reader ) : System
GetCallSite ( MetadataToken token ) : CallSite
GetParameter ( int index ) : ParameterDefinition
GetString ( MetadataToken token ) : string
GetVariable ( int index ) : VariableDefinition
MoveTo ( int rva ) : void
PatchRawMethodBody ( MethodDefinition method, CodeWriter writer, MethodSymbols &symbols ) : ByteBuffer
ReadMethodBody ( MethodDefinition method ) : MethodBody
ReadToken ( ) : MetadataToken
ReadVariables ( MetadataToken local_var_token ) : VariableDefinitionCollection

Private Methods

Method Description
Align ( int align ) : void
GetInstruction ( Collection instructions, int offset ) : Instruction
GetInstruction ( int offset ) : Instruction
GetOriginalToken ( MetadataBuilder metadata, MethodDefinition method ) : MetadataToken
IsInSection ( int rva ) : bool
PatchRawCode ( ByteBuffer buffer, int code_size, CodeWriter writer ) : void
PatchRawExceptionHandlers ( ByteBuffer buffer, MetadataBuilder metadata, int count, bool fat_entry ) : void
PatchRawFatMethod ( ByteBuffer buffer, MethodSymbols symbols, CodeWriter writer, MetadataToken &local_var_token ) : void
PatchRawFatSection ( ByteBuffer buffer, MetadataBuilder metadata ) : void
PatchRawSection ( ByteBuffer buffer, MetadataBuilder metadata ) : void
PatchRawSmallSection ( ByteBuffer buffer, MetadataBuilder metadata ) : void
ReadCode ( ) : void
ReadExceptionHandlerSpecific ( ExceptionHandler handler ) : void
ReadExceptionHandlers ( int count, Func read_entry, Func read_length ) : void
ReadFatMethod ( ) : void
ReadFatSection ( ) : void
ReadMethodBody ( ) : void
ReadOpCode ( ) : OpCode
ReadOperand ( Instruction instruction ) : object
ReadSection ( ) : void
ReadSmallSection ( ) : void
ResolveBranches ( Collection instructions ) : void

Method Details

CodeReader() public method

public CodeReader ( Section section, MetadataReader reader ) : System
section Inazuma.Mono.Cecil.PE.Section
reader MetadataReader
return System

GetCallSite() public method

public GetCallSite ( MetadataToken token ) : CallSite
token MetadataToken
return CallSite

GetParameter() public method

public GetParameter ( int index ) : ParameterDefinition
index int
return ParameterDefinition

GetString() public method

public GetString ( MetadataToken token ) : string
token MetadataToken
return string

GetVariable() public method

public GetVariable ( int index ) : VariableDefinition
index int
return VariableDefinition

MoveTo() public method

public MoveTo ( int rva ) : void
rva int
return void

PatchRawMethodBody() public method

public PatchRawMethodBody ( MethodDefinition method, CodeWriter writer, MethodSymbols &symbols ) : ByteBuffer
method MethodDefinition
writer CodeWriter
symbols MethodSymbols
return ByteBuffer

ReadMethodBody() public method

public ReadMethodBody ( MethodDefinition method ) : MethodBody
method MethodDefinition
return MethodBody

ReadToken() public method

public ReadToken ( ) : MetadataToken
return MetadataToken

ReadVariables() public method

public ReadVariables ( MetadataToken local_var_token ) : VariableDefinitionCollection
local_var_token MetadataToken
return VariableDefinitionCollection