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

First commit for vach 0.3.0 #53

Merged
merged 46 commits into from
Dec 29, 2021
Merged

First commit for vach 0.3.0 #53

merged 46 commits into from
Dec 29, 2021

Conversation

sokorototo
Copy link
Collaborator

With this commit comes

  • Builder callbacks now just take a closure, instead of a Boxed closure
  • The size of flags has been increased from u16 to u32
  • Support for two new compression algorithms: brotli and snappy.
  • Compression is handled by a single struct, like encryption, making small changes now easier.

ARCHIVE_VERSION: [u8;2] | u16
CAPACITY: [u8;2] | u16

FLAGS: [u8;2] | u16, SPECIFIES;
FLAGS: [u8;4] | u32, SPECIFIES;
1 => HAS_SIGNATURES
2-15 => CUSTOM_DATA
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably annotate what the other 16 bits are for

spec/main.txt Outdated
1 => HAS_SIGNATURES
2-15 => CUSTOM_DATA

>---- REGISTRY ----<
ENTRIES: (x) * HEADER::CAPACITY
FLAGS: [u8;2] | u16, SPECIFIES;
FLAGS: [u8;4] | u32, SPECIFIES;
0 => IS_COMPRESSED
1-3 => RESERVED
4-15 => CUSTOM_DATA
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here

@zeskeertwee zeskeertwee merged commit a14357b into zeskeertwee:main Dec 29, 2021
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.

2 participants