Backward compatible of compound datasets #182
Julian9620
started this conversation in
Show and tell
Replies: 1 comment
-
|
I'm glad the library meets your needs 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tested it and i know now: If there was an update of the struct which represents a row you can add a new column for the new data. If you load now the old data does not matter.
Tests were with:
[Serializable] [StructLayout(LayoutKind.Sequential)] public struct Row { [Hdf5EntryName("doublevalue")] public double doublevalue; [Hdf5EntryName("stringvalue")] [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] public string stringvalue; }to:
[Serializable] [StructLayout(LayoutKind.Sequential)] public struct Row { [Hdf5EntryName("doublevalue")] public double doublevalue; [Hdf5EntryName("stringvalue")] [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)] public string stringvalue; [Hdf5EntryName("intvalue")] [MarshalAs(UnmanagedType.U4)] public uint intvalue; }Great Job @LiorBanai 👍
Beta Was this translation helpful? Give feedback.
All reactions