-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
678 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), | ||
) |
Oops, something went wrong.