Skip to content

Commit 6031bb8

Browse files
committed
Add comment on FFI compatability
1 parent ed51217 commit 6031bb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hdf5-types/src/complex.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use num_complex::Complex;
66

77
unsafe impl<T: H5Type> H5Type for Complex<T> {
88
fn type_descriptor() -> TypeDescriptor {
9+
// Complex<T> should be FFI-equivalent to [T; 2]
10+
// https://docs.rs/num-complex/0.4.3/num_complex/struct.Complex.html#representation-and-foreign-function-interface-compatibility
911
TypeDescriptor::Compound(CompoundType {
1012
fields: vec![
1113
// Compatible with h5py definition of complex

0 commit comments

Comments
 (0)