예제 #1
0
파일: h5t.go 프로젝트: pombredanne/go-hdf5
// Retrieves the name of a compound or enumeration datatype member.
// char * H5Tget_member_name( hid_t dtype_id, unsigned field_idx )
func (t *CompType) MemberName(mbr_idx int) string {
	c_name := C.H5Tget_member_name(t.id, C.uint(mbr_idx))
	return C.GoString(c_name)
}
예제 #2
0
파일: h5t.go 프로젝트: jonlawlor/go-hdf5
// MemberName returns the name of a compound or enumeration datatype member.
func (t *CompoundType) MemberName(mbr_idx int) string {
	c_name := C.H5Tget_member_name(t.id, C.uint(mbr_idx))
	defer C.free(unsafe.Pointer(c_name))
	return C.GoString(c_name)
}