C# Class Unity.IL2CPP.Marshaling.BodyWriters.NativeToManaged.NativeToManagedInteropMethodBodyWriter

Inheritance: Unity.IL2CPP.Marshaling.BodyWriters.InteropMethodBodyWriter
ファイルを表示 Open project: CarlosHBC/UnityDecompiled

Protected Properties

Property Type Description
_managedMethod Mono.Cecil.MethodReference

Public Methods

Method Description
NativeToManagedInteropMethodBodyWriter ( MethodReference managedMethod, MethodReference interopMethod, MarshalType marshalType, bool useUnicodeCharset ) : Mono.Cecil

Protected Methods

Method Description
GetMethodCallExpression ( IRuntimeMetadataAccess metadataAccess, string thisArgument, IEnumerable localVariableNames ) : string
WriteMethodPrologue ( CppCodeWriter writer, IRuntimeMetadataAccess metadataAccess ) : void
WriteReturnStatement ( CppCodeWriter writer, string unmarshaledReturnValueVariableName, IRuntimeMetadataAccess metadataAccess ) : void
WriteReturnStatementEpilogue ( CppCodeWriter writer, string unmarshaleedReturnValueVariableName ) : void

Method Details

GetMethodCallExpression() protected method

protected GetMethodCallExpression ( IRuntimeMetadataAccess metadataAccess, string thisArgument, IEnumerable localVariableNames ) : string
metadataAccess IRuntimeMetadataAccess
thisArgument string
localVariableNames IEnumerable
return string

NativeToManagedInteropMethodBodyWriter() public method

public NativeToManagedInteropMethodBodyWriter ( MethodReference managedMethod, MethodReference interopMethod, MarshalType marshalType, bool useUnicodeCharset ) : Mono.Cecil
managedMethod Mono.Cecil.MethodReference
interopMethod Mono.Cecil.MethodReference
marshalType MarshalType
useUnicodeCharset bool
return Mono.Cecil

WriteMethodPrologue() protected method

protected WriteMethodPrologue ( CppCodeWriter writer, IRuntimeMetadataAccess metadataAccess ) : void
writer CppCodeWriter
metadataAccess IRuntimeMetadataAccess
return void

WriteReturnStatement() protected final method

protected final WriteReturnStatement ( CppCodeWriter writer, string unmarshaledReturnValueVariableName, IRuntimeMetadataAccess metadataAccess ) : void
writer CppCodeWriter
unmarshaledReturnValueVariableName string
metadataAccess IRuntimeMetadataAccess
return void

WriteReturnStatementEpilogue() protected abstract method

protected abstract WriteReturnStatementEpilogue ( CppCodeWriter writer, string unmarshaleedReturnValueVariableName ) : void
writer CppCodeWriter
unmarshaleedReturnValueVariableName string
return void

Property Details

_managedMethod protected_oe property

protected MethodReference,Mono.Cecil _managedMethod
return Mono.Cecil.MethodReference