Skip to content
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

Feature/data pack #508

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open

Feature/data pack #508

wants to merge 42 commits into from

Conversation

Mira-Fr
Copy link
Collaborator

@Mira-Fr Mira-Fr commented Mar 26, 2022

  • Step to step, DataPack construction with SDL2 primitives
  • Prototype test program by example
  • Commented code

DataPack

A DataPack is composed by an header and data

Header

The header is organized like this

  • title: on 4 bytes
  • number of files: on 2 bytes (uint16_t)
    One line for each file that contains
  • its identifier on 40 bytes
  • its position in the data : offset on 4 bytes (uint32_t)
  • the size of the file : sizeFile on 4 bytes (uint32_t)

Data

Data are organized like this
file0 offset 0 to 0+sizeFile0 <-- offset1
file1 offset offset1 to offset1 + sizeFile1 <--- offset2
file2 offset offset2 to offset2 + sizeFile2 <--- offset3
file3 offset offset3 to offset3 + sizeFile3 <--- offset4
...

@Mira-Fr Mira-Fr marked this pull request as draft March 26, 2022 08:05
@Mira-Fr Mira-Fr marked this pull request as ready for review May 8, 2023 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant