C# Class MsgPack.Compiler.PackILGenerator

Afficher le fichier Open project: e-travel/msgpack

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

EmitPackMemberValueCode() public static méthode

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
Résultat void

EmitUnpackCode() public static méthode

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
Résultat void

EmitUnpackReadAndTypeCheckCode() public static méthode

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
Résultat void