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

WDYT of using key-value encoding rather than INI encoding? #27

Open
vlsi opened this issue Oct 26, 2023 · 2 comments
Open

WDYT of using key-value encoding rather than INI encoding? #27

vlsi opened this issue Oct 26, 2023 · 2 comments

Comments

@vlsi
Copy link

vlsi commented Oct 26, 2023

I believe a structured encoding for key-value might be easier to parse.

For instance:

unit16_t keySize;
char* key;
uint16_t valueSize;
char* value;

The specification might add a limit like 128 bytes for the maximum key and value, so the consumers can reject files if a key or value exceeds 128.

@bubnikv
Copy link
Collaborator

bubnikv commented Oct 26, 2023 via email

@vlsi
Copy link
Author

vlsi commented Oct 27, 2023

char* key and char* value would be visible as well. However, they will be much easier to generate and parse.
For instance, binary encoding would not need escape processing which is inevitably needed for INI.

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

No branches or pull requests

2 participants