6.1.23OPAQUE
The HDFql OPAQUE data type stores values between 0 and 255 and occupies 1 byte in memory. It represents the data type of an HDF5 H5T_OPAQUE dataset/attribute or of a result set that stores elements of this type (which can be retrieved using the HDFQL_CURSOR_GET_UNSIGNED_TINYINT and HDFQL_SUBCURSOR_GET_UNSIGNED_TINYINT functions when working with cursors). The OPAQUE data type is useful for representing data that should not be interpreted/rearranged by the HDF5 library when reading/writing it from/into a dataset or attribute. Depending on the programming language supported by HDFql, the OPAQUE data type is represented by:
- In C, the “unsigned char” data type.
- In C++, the “unsigned char” data type.
- In Java32, the “byte” data type (or corresponding wrapper class “Byte”).
- In Python, the “ubyte” NumPy data type.
- In C#, the “Byte” data type (or corresponding alias “byte”).
- In Fortran, the “CHARACTER” data type.
- In R, the “raw” data type.
- In MATLAB, the “uint8” data type.
Notes
- By design, Java does not support unsigned data types. Therefore, the programmer is responsible for converting a signed number to its equivalent unsigned representation in Java. ↩