Esempio n. 1
0
// Determines whether a file is in the HDF5 format.
func IsHdf5(name string) bool {
	c_name := C.CString(name)
	defer C.free(unsafe.Pointer(c_name))

	o := int(C.H5Fis_hdf5(c_name))
	if o > 0 {
		return true
	}
	return false
}
Esempio n. 2
0
// IsHDF5 Determines whether a file is in the HDF5 format.
func IsHDF5(name string) bool {
	c_name := C.CString(name)
	defer C.free(unsafe.Pointer(c_name))

	return C.H5Fis_hdf5(c_name) > 0
}