-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpret .DS_Store
files
#153
Comments
The - id: value
type:
switch-on: data_type
cases:
'"long"': u4
'"shor"': u4
'"bool"': u1
'"blob"': record_blob
'"type"': four_char_code
'"ustr"': ustr
'"comp"': u8
'"dutc"': u8
This combined type is internally referred to as A workaround for now is to ensure that primitive types ( - id: value
type:
switch-on: data_type
cases:
'"long"': u4_wrapper
'"shor"': u4_wrapper
'"bool"': bool_wrapper
'"blob"': record_blob
'"type"': four_char_code
'"ustr"': ustr
'"comp"': u8_wrapper
'"dutc"': u8_wrapper
types:
u4_wrapper:
seq:
- id: value
type: u4
u8_wrapper:
seq:
- id: value
type: u8
bool_wrapper:
seq:
- id: raw
type: u1
instances:
value:
value: raw != 0 Then the compiler will able to decide that the |
We would like to read
.DS_Store
files (as known from the Mac) in our C++ application, Filer.http://kaitai.io/ can generate code in various programming languages (including C++) to parse various file formats. For C++, there is https://github.com/kaitai-io/kaitai_struct_cpp_stl_runtime.
https://formats.kaitai.io/ds_store/ has a format specification for the
.DS_Store
file format.Can we turn this into working C++ code that we could use in Filer to read
.DS_Store
files?Unofortunately the C++ code is missing on the page for this particular file format, and trying to compile it with https://github.com/kaitai-io/kaitai_struct_compiler throws an error:
Related to:
Reference:
The text was updated successfully, but these errors were encountered: