Ejemplo n.º 1
0
        public static AMD64ImageRuntimeFunctionEntry ReadFrom(BinaryReader r)
        {
            AMD64ImageRuntimeFunctionEntry entry = new AMD64ImageRuntimeFunctionEntry();

            entry.BeginAddress = r.ReadInt32();
            entry.EndAddress   = r.ReadInt32();
            entry.UnwindData   = r.ReadInt32();
            return(entry);
        }
Ejemplo n.º 2
0
 public static RuntimeFunctionEntry ReadFrom(BinaryReader r, ImageFileMachine arch)
 {
     if (arch == ImageFileMachine.ARM)
     {
         return(ARMImageRuntimeFunctionEntry.ReadFrom(r));
     }
     else
     {
         return(AMD64ImageRuntimeFunctionEntry.ReadFrom(r));
     }
 }
Ejemplo n.º 3
0
 public static int GetSize(ImageFileMachine arch)
 {
     if (arch == ImageFileMachine.ARM)
     {
         return(ARMImageRuntimeFunctionEntry.GetSize());
     }
     else
     {
         return(AMD64ImageRuntimeFunctionEntry.GetSize());
     }
 }