C# Class MsgPack.Compiler.PackILGenerator

Exibir arquivo Open project: e-travel/msgpack

Public Methods

Method Description
EmitPackCode ( Type type, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupPackMethod ) : void
EmitPackMemberValueCode ( Type type, ILGenerator il, MsgPack.Compiler.Variable var_writer, MsgPack.Compiler.Variable var_obj, MemberInfo m, MsgPack.Compiler.Variable elementIdx, Type currentType, MethodInfo currentMethod, MethodInfo>.Func lookupPackMethod ) : void
EmitUnpackCode ( Type type, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupUnpackMethod, int>.Func lookupMemberMapping, MethodInfo lookupMemberMappingMethod ) : void
EmitUnpackReadAndTypeCheckCode ( ILGenerator il, MsgPack.Compiler.Variable msgpackReader, MethodInfo typeCheckMethod, MethodInfo failedMethod, bool nullCheckAndReturn ) : void

Private Methods

Method Description
EmitPackArrayCode ( MethodInfo mi, ILGenerator il, Type t, MsgPack.Compiler.Variable var_writer, MsgPack.Compiler.Variable var_obj, MsgPack.Compiler.Variable var_loop, MethodInfo>.Func lookupPackMethod ) : void
EmitUnpackArrayCode ( Type arrayType, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupUnpackMethod ) : void
EmitUnpackMapCode ( Type type, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupUnpackMethod, int>.Func lookupMemberMapping, MethodInfo lookupMemberMappingMethod ) : void
GetMemberType ( this mi ) : Type
IsMap ( this type ) : bool

Checks if a type is elegible for "Map" serialization.

UnpackFailed ( ) : void

Exception Helper

Method Details

EmitPackCode() public static method

public static EmitPackCode ( Type type, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupPackMethod ) : void
type System.Type
mi System.Reflection.MethodInfo
il System.Reflection.Emit.ILGenerator
targetMemberSelector MemberInfo[]>.Func
memberNameFormatter string>.Func
lookupPackMethod MethodInfo>.Func
return void

EmitPackMemberValueCode() public static method

public static EmitPackMemberValueCode ( Type type, ILGenerator il, MsgPack.Compiler.Variable var_writer, MsgPack.Compiler.Variable var_obj, MemberInfo m, MsgPack.Compiler.Variable elementIdx, Type currentType, MethodInfo currentMethod, MethodInfo>.Func lookupPackMethod ) : void
type System.Type
il System.Reflection.Emit.ILGenerator
var_writer MsgPack.Compiler.Variable
var_obj MsgPack.Compiler.Variable
m System.Reflection.MemberInfo (optional)
elementIdx MsgPack.Compiler.Variable (optional)
currentType System.Type
currentMethod System.Reflection.MethodInfo
lookupPackMethod MethodInfo>.Func
return void

EmitUnpackCode() public static method

public static EmitUnpackCode ( Type type, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupUnpackMethod, int>.Func lookupMemberMapping, MethodInfo lookupMemberMappingMethod ) : void
type System.Type
mi System.Reflection.MethodInfo
il System.Reflection.Emit.ILGenerator
targetMemberSelector MemberInfo[]>.Func
memberNameFormatter string>.Func
lookupUnpackMethod MethodInfo>.Func
lookupMemberMapping int>.Func
lookupMemberMappingMethod System.Reflection.MethodInfo
return void

EmitUnpackReadAndTypeCheckCode() public static method

public static EmitUnpackReadAndTypeCheckCode ( ILGenerator il, MsgPack.Compiler.Variable msgpackReader, MethodInfo typeCheckMethod, MethodInfo failedMethod, bool nullCheckAndReturn ) : void
il System.Reflection.Emit.ILGenerator
msgpackReader MsgPack.Compiler.Variable
typeCheckMethod System.Reflection.MethodInfo
failedMethod System.Reflection.MethodInfo
nullCheckAndReturn bool
return void