HighFive
HighFive copied to clipboard
Datatype of `char[][N]`.
It's seems that a C array of C-string constants is serialized as an array of signed 8-bit ints. See,
$ h5dump -R build-2.5.1/tests/unit/h5_rw_vec_shortcut_test.h5
HDF5 "build-2.5.1/tests/unit/h5_rw_vec_shortcut_test.h5" {
GROUP "/" {
DATASET "TmpCArray2dchar" {
DATATYPE H5T_STD_I8LE
DATASPACE SIMPLE { ( 4, 3 ) / ( 4, 3 ) }
DATA {
(0,0): 97, 97, 0,
(1,0): 98, 98, 0,
(2,0): 99, 99, 0,
(3,0): 49, 50, 0
}
}
This behaviour might be older than 2.5.1. We should review why this choice was made and if we can't find a good one make it serialize to something string-ish.