Reading a compound type dataset #217
-
I have been trying for quite some hours to read the data of a HDF5 file in Rust (in which I am a beginner).
I can read the "traces" dataset just fine but when it comes to the "metadata" dataset, I have only found a way to obtain weird data full of zeros. This is the output I should get (first element):
And what I get from Rust with the following code:
I will gladly take any idea on how to handle this! Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't have a computer right now, could you try reading the data as this type? #[repr(C)]
#[derive(H5Type)]
struct metadata {
plaintext: [u8; 16]
# the other fields
} |
Beta Was this translation helpful? Give feedback.
I don't have a computer right now, could you try reading the data as this type?