Commit de540e22 authored by Jack Jansen's avatar Jack Jansen

Got rid of byte-order dependencies.

parent b518d8c7
...@@ -25,14 +25,14 @@ class Error(ValueError): ...@@ -25,14 +25,14 @@ class Error(ValueError):
pass pass
# File header format: magic, version, unused, number of entries # File header format: magic, version, unused, number of entries
AS_HEADER_FORMAT="LL16sh" AS_HEADER_FORMAT=">ll16sh"
AS_HEADER_LENGTH=26 AS_HEADER_LENGTH=26
# The flag words for AppleSingle # The flag words for AppleSingle
AS_MAGIC=0x00051600 AS_MAGIC=0x00051600
AS_VERSION=0x00020000 AS_VERSION=0x00020000
# Entry header format: id, offset, length # Entry header format: id, offset, length
AS_ENTRY_FORMAT="lll" AS_ENTRY_FORMAT=">lll"
AS_ENTRY_LENGTH=12 AS_ENTRY_LENGTH=12
# The id values # The id values
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment