summaryrefslogtreecommitdiffstats
path: root/src/H5TB.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1999-06-04 22:27:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1999-06-04 22:27:28 (GMT)
commit2a10e682a13244d5c61982445f2d6ec5bc990a36 (patch)
treefd25460dfb65d05ee3b3f19a5b11fe728a0e7adf /src/H5TB.c
parentdf96f4362a0872e832cb0b995e209da4e315cb9d (diff)
downloadhdf5-2a10e682a13244d5c61982445f2d6ec5bc990a36.zip
hdf5-2a10e682a13244d5c61982445f2d6ec5bc990a36.tar.gz
hdf5-2a10e682a13244d5c61982445f2d6ec5bc990a36.tar.bz2
[svn-r1305] Checkpointing the VL datatype code. I believe the core functionality is here,
accessed with H5Tvlen_create, but I need to start writing tests now. Also the more esoteric API calls (such as H5Tget_vlen_buf_size and the memory management calls) aren't implemented yet.
Diffstat (limited to 'src/H5TB.c')
-rw-r--r--src/H5TB.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/H5TB.c b/src/H5TB.c
index 4b6bf25..2b401b1 100644
--- a/src/H5TB.c
+++ b/src/H5TB.c
@@ -349,9 +349,11 @@ done:
PURPOSE
Resize a temp. buffer to a new size
USAGE
- herr_t H5TB_resize_buf(tbid, size)
+ herr_t H5TB_resize_buf(tbid, size, ptr)
hid_t tbid; IN: Temp. buffer ID to resize
hsize_t size; IN: New size of temp. buffer
+ void **ptr; OUT: Pointer to a pointer to set to the buffer
+ address, if not NULL
RETURNS
non-negative on success, negative on failure
DESCRIPTION
@@ -362,7 +364,7 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
herr_t
-H5TB_resize_buf(hid_t tbuf_id, hsize_t size)
+H5TB_resize_buf(hid_t tbuf_id, hsize_t size, void **ptr)
{
herr_t ret_value = FAIL;
H5TB_t *tbuf, /* Pointer to temporary buffer */
@@ -430,6 +432,10 @@ H5TB_resize_buf(hid_t tbuf_id, hsize_t size)
} /* end else */
} /* end if */
+ /* Assign the pointer to the buffer, if requested */
+ if(ptr!=NULL)
+ *ptr=tbuf->buf;
+
FUNC_LEAVE(ret_value);
} /* H5TB_resize_buf() */