pub unsafe extern "C" fn nn_model_resource_data(
resource: *const NNModelResource,
data_size: *mut usize,
) -> *const u8Expand description
Returns the raw binary data for the resource, the size of the data will be saved in @p data_size if non-NULL.
@param resource pointer to a @ref NNModelResource retrieved from the model. @param data_size optional pointer to a size_t to receive the length in bytes of the data, if provided.
@returns pointer to the start of the data stream of length @p data_size. @returns NULL if resource has no data associated.
@public @memberof NNModelResource @since 2.4