Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Include new information found about resource length bytes
  • Loading branch information
Apophenic committed Jul 20, 2015
1 parent f50acf9 commit c84da5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ rsrc-lib provides an API for editing and manipulating Mac Resource Files (.rsrc)
----------------
.rsrc files are Mac Resource Files. Their typical structure consists of multiple types of resources with said resource
files directly embedded into the .rsrc file. File layout is as follows:
* The first 16 bytes are the header
* Bytes 4-8 are the offset the header can be found at
* The next 256 bytes are usually padding
* The next section is the majority of the file, containing all embedded resources, each separated by 4 padding bytes
* The header follows the last resource. So you'll have the final resource file, the 4 padding bytes, then the 16
header bytes.
* The first 16 bytes are the header signature
* Bytes 4-8 are the offset the actual header (or "footer" in this case) can be found at
* The next 256 bytes are padding
* The next section is the majority of the file, containing all embedded resources, each separated by 4 bytes
representing the length of the following resource.
* The header follows the last resource.
* Then there will be 12-16 unknown bytes separating the first resource type.
* The resource type will be followed by 8 padding bytes, then will list all resources of that type
* Each resource entry is 14 bytes, no padding. Format is _3A 99 FF FF 00 03 0D 00 00 00 00 00_, where the first two
Expand Down

0 comments on commit c84da5d

Please sign in to comment.