diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-07-14 21:45:23 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-07-14 21:45:23 (GMT) |
commit | fbc2aaadafb3dfb23842ee4c89bad4bfdb6d3077 (patch) | |
tree | 6c92298234945fc1c59f9b46e0e399a5e26690bc /src/H5Tprivate.h | |
parent | 9b2aafa18b550a34b39acd78d32e04af49c3cbbb (diff) | |
download | hdf5-fbc2aaadafb3dfb23842ee4c89bad4bfdb6d3077.zip hdf5-fbc2aaadafb3dfb23842ee4c89bad4bfdb6d3077.tar.gz hdf5-fbc2aaadafb3dfb23842ee4c89bad4bfdb6d3077.tar.bz2 |
[svn-r8879]
Purpose: New feature
Description: New API H5Tencode and H5Tdecode. Given object ID, H5Tencode encodes object information into a binary form. H5Tdecode decode an object information in a binary form, reconstructs the object and return a new object ID.
Solution: Use object header functions H5O_dtype_decode and H5O_dtype_encode to
facilitate them. The encoded binary is exactly like object header information.
This is the first step checkin. Will check in H5Sencode and H5Sdecode later.
Platforms tested: h5committed and fuss.
Misc. update: will update release.txt after 2nd step checkin.
Diffstat (limited to 'src/H5Tprivate.h')
-rw-r--r-- | src/H5Tprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tprivate.h b/src/H5Tprivate.h index 965ca93..a8840e7 100644 --- a/src/H5Tprivate.h +++ b/src/H5Tprivate.h @@ -93,6 +93,8 @@ H5_DLL htri_t H5T_set_loc(H5T_t *dt, H5F_t *f, H5T_loc_t loc); H5_DLL htri_t H5T_is_sensible(const H5T_t *dt); H5_DLL htri_t H5T_committed(H5T_t *type); H5_DLL int H5T_link(const H5T_t *type, int adjust, hid_t dxpl_id); +H5_DLL herr_t H5T_encode(H5T_t *obj, unsigned char *buf, size_t *nalloc); +H5_DLL H5T_t *H5T_decode(unsigned char *buf); /* Reference specific functions */ H5_DLL H5R_type_t H5T_get_ref_type(const H5T_t *dt); |