We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a protobuf schema with
optional bytes fingerprint = 1;
I am using flatc --proto to convert it to a fbs schema.
The schema generated has
fingerprint:string;
I was expecting a
fingerprint: [byte];
In the parser code, I see that the mapping is
{ "bytes", BASE_TYPE_STRING },
https://github.com/google/flatbuffers/blob/master/src/idl_parser.cpp#L1729
Is the conversion to string intentional? If the bytes in proto were used to store binary data, will they be compatible with the generated fbs ?
The text was updated successfully, but these errors were encountered:
I agree, [byte] would be better. Under C++, string is about the same, but in other languages it isn't. A PR to fix this would be welcome.
[byte]
string
Sorry, something went wrong.
Fixed: 69776b9
Thanks for fixing this.
No branches or pull requests
I have a protobuf schema with
I am using flatc --proto to convert it to a fbs schema.
The schema generated has
I was expecting a
In the parser code, I see that the mapping is
https://github.com/google/flatbuffers/blob/master/src/idl_parser.cpp#L1729
Is the conversion to string intentional? If the bytes in proto were used to store binary data, will they be compatible with the generated fbs ?
The text was updated successfully, but these errors were encountered: