Skip to content

Commit

Permalink
fixing issues with using UDA_TYPE_OPAQUE for returning binary data
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Dec 11, 2024
1 parent ace4f64 commit 3939176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/clientserver/udaTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ size_t getSizeOf(UDA_TYPE data_type)
return sizeof(DCOMPLEX);
case UDA_TYPE_CAPNP:
return sizeof(char);
case UDA_TYPE_OPAQUE:
return sizeof(char);
default:
return 0;
}
Expand Down Expand Up @@ -78,4 +80,4 @@ size_t getPtrSizeOf(UDA_TYPE data_type)
default:
return 0;
}
}
}
1 change: 1 addition & 0 deletions source/wrappers/python/pyuda/cpyuda/types.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ __uda2np_map = {
12: np.NPY_UINT64, # UDA_TYPE_UNSIGNED_LONG64 = 12,
13: np.NPY_COMPLEX64, # UDA_TYPE_COMPLEX = 13,
14: np.NPY_COMPLEX128, # UDA_TYPE_DCOMPLEX = 14,
19: np.NPY_UINT8, # UDA_TYPE_OPAQUE
}

__np2uda_map = dict((__uda2np_map[i], i) for i in __uda2np_map)
Expand Down

0 comments on commit 3939176

Please sign in to comment.