The XISFHeader structure currently uses a String to store a Type format. Given that the number of options is a reduced set, it would probably be more convenient to use a Rust enum which can also have a num_bytes() function that directly returns the number of bytes. This would improve performance a bit, RAM usage a bit, and make the code more maintainable and more clear.
Let me know what you think, and I can implement it.
The
XISFHeader
structure currently uses aString
to store a Type format. Given that the number of options is a reduced set, it would probably be more convenient to use a Rustenum
which can also have anum_bytes()
function that directly returns the number of bytes. This would improve performance a bit, RAM usage a bit, and make the code more maintainable and more clear.Let me know what you think, and I can implement it.