Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
0bj3ct committed Feb 10, 2015
1 parent d5145ce commit fd65d21
Show file tree
Hide file tree
Showing 3 changed files with 678 additions and 203 deletions.
23 changes: 23 additions & 0 deletions core/fat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#file: fat.py
#author: 0bj3ct
#description: fat.h头文件实现

from loader import cpu_type_t,cpu_subtype_t
from ctypes import *

FAT_MAGIC = 0xcafebabeL
class fat_header(Structure):
_fields_ = (
('magic', c_uint),
('nfat_arch', c_uint),
)

class fat_arch(Structure):
_fields_ = (
('cputype', cpu_type_t),
('cpusubtype', cpu_subtype_t),
('offset', c_uint),
('size', c_uint),
('align', c_uint),
)
Loading

0 comments on commit fd65d21

Please sign in to comment.