Replies: 2 comments
-
Hi, thanks for your question! Handling relative offsets is described in the “With relative offsets” section of the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi thx! reading, how would be in case we have the pair of offset and size? can't found that on the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I has been trying to use this library to read a PAC format, which essentially is a format which allows to to save different files.
A very simplified version of the concept of it would be:
u32: number of files
Vec: Info which contains at least offset and size per file
(): Position from where the offset is count to found a file
I has been checking and reading the docs to found a good way to do this.... but I can't found it!
The ideal case, is be able on the Info section, so would be only one structure with their info and data, but how the position is know after get the info, we can't pass the start point to the macros because we only can use variable declared before to use seek.
There is also the option to read the data implementing this instead of using binrw.
Other option is after make a new section for the structure, and we would need the Vec and the Position which we could get and make a custom function which would read one by one, which is very similar to a implementation without the lib.
This files... in my experience are usual, so I think would be nice a way from the lib to be able to parse this type of files, but I don't know which option would be nice for this...
This seems related: #4
Thx!
Beta Was this translation helpful? Give feedback.
All reactions