diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2015-02-10 19:58:09 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2015-02-10 19:58:09 (GMT) |
commit | 14200fef675e0c1732d84ae7e06e81a812bd5e99 (patch) | |
tree | 6b89eff81087652d65dc62f55689861a268f88dc /src/H5Sselect.c | |
parent | 055348122df2be0c6ec519f9c29e2dad96c19ece (diff) | |
download | hdf5-14200fef675e0c1732d84ae7e06e81a812bd5e99.zip hdf5-14200fef675e0c1732d84ae7e06e81a812bd5e99.tar.gz hdf5-14200fef675e0c1732d84ae7e06e81a812bd5e99.tar.bz2 |
[svn-r26153] INCOMPLETE, UNWORKING CODE
Commit progress through 2/10/15 at 1500 CST
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index 2cb4b38..7d22f08 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -241,7 +241,7 @@ H5S_select_serial_size(const H5S_t *space) USAGE herr_t H5S_select_serialize(space, buf) const H5S_t *space; IN: Dataspace with selection to serialize - uint8_t *buf; OUT: Buffer to put serialized selection + uint8_t **p; OUT: Buffer to put serialized selection RETURNS Non-negative on success/Negative on failure DESCRIPTION @@ -256,7 +256,7 @@ H5S_select_serial_size(const H5S_t *space) REVISION LOG --------------------------------------------------------------------------*/ herr_t -H5S_select_serialize(const H5S_t *space, uint8_t *buf) +H5S_select_serialize(const H5S_t *space, uint8_t **p) { herr_t ret_value=SUCCEED; /* Return value */ @@ -266,7 +266,7 @@ H5S_select_serialize(const H5S_t *space, uint8_t *buf) HDassert(buf); /* Call the selection type's serialize function */ - ret_value=(*space->select.type->serialize)(space,buf); + ret_value=(*space->select.type->serialize)(space,p); FUNC_LEAVE_NOAPI(ret_value) } /* end H5S_select_serialize() */ @@ -444,9 +444,8 @@ H5S_select_valid(const H5S_t *space) REVISION LOG --------------------------------------------------------------------------*/ herr_t -H5S_select_deserialize (H5S_t *space, const uint8_t *buf) +H5S_select_deserialize (H5S_t **space, const uint8_t **p) { - const uint8_t *tbuf; /* Temporary pointer to the selection type */ uint32_t sel_type; /* Pointer to the selection type */ herr_t ret_value=FAIL; /* return value */ @@ -454,23 +453,22 @@ H5S_select_deserialize (H5S_t *space, const uint8_t *buf) HDassert(space); - tbuf=buf; - UINT32DECODE(tbuf, sel_type); + UINT32DECODE(*p, sel_type); switch(sel_type) { case H5S_SEL_POINTS: /* Sequence of points selected */ - ret_value=(*H5S_sel_point->deserialize)(space,buf); + ret_value=(*H5S_sel_point->deserialize)(space,p); break; case H5S_SEL_HYPERSLABS: /* Hyperslab selection defined */ - ret_value=(*H5S_sel_hyper->deserialize)(space,buf); + ret_value=(*H5S_sel_hyper->deserialize)(space,p); break; case H5S_SEL_ALL: /* Entire extent selected */ - ret_value=(*H5S_sel_all->deserialize)(space,buf); + ret_value=(*H5S_sel_all->deserialize)(space,p); break; case H5S_SEL_NONE: /* Nothing selected */ - ret_value=(*H5S_sel_none->deserialize)(space,buf); + ret_value=(*H5S_sel_none->deserialize)(space,p); break; default: |