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

Complete protobuf structure #13

Open
sonovice opened this issue Sep 28, 2022 · 1 comment
Open

Complete protobuf structure #13

sonovice opened this issue Sep 28, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@sonovice
Copy link

Not an issue, just info.

I wanted to parse the protobuf data on my own using the standard tools by google. The correct and complete proto file looks something like this:

syntax = "proto2";

message Header {
  required bytes sha1_hash = 1;
  required uint64 num_bytes = 2;
  required uint32 id = 3;
  repeated uint32 track_page_nums = 4 [packed=true];
  required bytes _fill = 5;
}

Reading original files and writing own ones works flawlessly with this. I tested it by serializing the information extracted from an original file and compared the bytes.

@g3gg0
Copy link
Collaborator

g3gg0 commented Sep 28, 2022

great, thanks :)

@SciLor SciLor added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants