I'm trying to get the size of an opaque dataset element so that I can
allocate the buf before doing the H5Dread().Is there a way to do this?
Each element in the dataset should have a different size as it's just a 1
dimensional array of blobs...
I could switch from opaque to vlen strings if that would be better, or
perhaps write the size out in an attribute... but I'm surely missing
something... there must be a way...
Any help appreciated...
Thanks
Andy
Hi Quincey,
Thanks for the quick response. Not sure how I missed that J. I'm a newbie
on HDF5 and still finding my way. My work computers off till Monday for an
office move but I'll be able to try it then.
Cheers
Andy
···
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org]
On Behalf Of Quincey Koziol
Sent: 24 July 2010 06:01
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] Opaque Dataset elements
Hi Andy,
On Jul 23, 2010, at 5:38 PM, Andy wrote:
I'm trying to get the size of an opaque dataset element so that I can
allocate the buf before doing the H5Dread().Is there a way to do this?
Each element in the dataset should have a different size as it's just a 1
dimensional array of blobs...
I could switch from opaque to vlen strings if that would be better, or
perhaps write the size out in an attribute... but I'm surely missing
something... there must be a way...
Any help appreciated...
It's late and I haven't checked the docs, but I would think that
H5Tget_size() should give you what you want.
Quincey