Example #1
0
// Gets the tag associated with an opaque datatype.
// char *H5Tget_tag( hid_t dtype_id )
func (t *OpaqueDataType) Tag() string {
	c_name := C.H5Tget_tag(t.id)
	if c_name != nil {
		return C.GoString(c_name)
	}
	return ""
}
Example #2
0
// Tag returns the tag associated with an opaque datatype.
func (t *OpaqueDatatype) Tag() string {
	cname := C.H5Tget_tag(t.id)
	if cname != nil {
		defer C.free(unsafe.Pointer(cname))
		return C.GoString(cname)
	}
	return ""
}