-
Notifications
You must be signed in to change notification settings - Fork 231
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
Zip64 field size #1113
Comments
You mean that the |
Ah, I understand! I missed that all other numeric fields were also parsed to |
No worries! it's not pretty but not sure if there is a nicer way to express it with the type system. Maybe bit size integer alises but would be tricky to range limit them in a nice way 🤔 |
I'm not sure whether this can be done a lot better. I currently use something like the following: pub enum Val {
Bool(bool),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
// ...
} Here, because there is at least one variant that is 64 bits wide (namely |
Aha yes :) for fq currently each decoded value is a "Scalar" struct to store optional mapping, description etc. That one i would like to turn into an interface instead so it that it could store just an 64 bit number in the case of a integer that has no mapping or description, or maybe mapping etc could be done using the interface, not sure yet. About integer types i think it could have made sense for fq if go could express bit-sized types, |
In
fq/format/zip/zip.go
Line 241 in cc522b1
zip64ExtendedInformation
holds a 64-bit integer. At least on Wikipedia, the size is given as 32 bits.The text was updated successfully, but these errors were encountered: