[−][src]Function lightgbm_sys::LGBM_DatasetGetFeatureNames
pub unsafe extern "C" fn LGBM_DatasetGetFeatureNames(
handle: DatasetHandle,
len: c_int,
num_feature_names: *mut c_int,
buffer_len: size_t,
out_buffer_len: *mut size_t,
feature_names: *mut *mut c_char
) -> c_int
\brief Get feature names of dataset.
\param handle Handle of dataset
\param len Number of char*
pointers stored at out_strs
.
If smaller than the max size, only this many strings are copied
\param[out] num_feature_names Number of feature names
\param buffer_len Size of pre-allocated strings.
Content is copied up to buffer_len - 1
and null-terminated
\param[out] out_buffer_len String sizes required to do the full string copies
\param[out] feature_names Feature names, should pre-allocate memory
\return 0 when succeed, -1 when failure happens