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
impl_scalar_property_reader!
for usize?
#8
Comments
I didn't think about it earlier, but I it shouldn't cause problems to support |
I trust that the code to support it could be written easily enough, but the question that arises is what happens when you serialize large values on platforms where usize is 64bit, and then deserialize on a platform where usize is 32bit? protobuf doesn't support it: https://developers.google.com/protocol-buffers/docs/proto3#scalar |
Thanks for your research! You convinced me that it's better not to support a Using |
I guess this turned into a please-never-have-this-Feature Request. 😅 |
re: flatgeobuf/flatgeobuf#109 (comment)
It looks like there is no
impl_scalar_property_reader!
for usize.In my specific use case, I realized it was inappropriate use of usize anyway, and switched to a u64, so everything is working for me.
Is
usize
something you want to support?It seems somewhat fraught as a serializable type since it can have different size on different machines.
The text was updated successfully, but these errors were encountered: