public void H5Aget_storage_sizeTest1() { hid_t att = H5A.create(m_v2_test_file, "A", H5T.IEEE_F64LE, m_space_scalar); Assert.IsTrue(att >= 0); hsize_t size = H5A.get_storage_size(att); Assert.IsTrue(size == 8); Assert.IsTrue(H5A.close(att) >= 0); att = H5A.create(m_v0_test_file, "A", H5T.IEEE_F64LE, m_space_scalar); Assert.IsTrue(att >= 0); size = H5A.get_storage_size(att); Assert.IsTrue(size == 8); Assert.IsTrue(H5A.close(att) >= 0); }
public void H5Aget_storage_sizeTest2() { Assert.IsFalse( H5A.get_storage_size(Utilities.RandomInvalidHandle()) > 0); }