#ifndef UTILS_H
#define UTILS_H
#include <MNN/HalideRuntime.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
char *data;
size_t size;
} CString;
CString createCString(const char *data, size_t size);
void destroyCString(CString *string);
typedef struct {
CString name;
void *tensor;
} TensorInfo;
typedef struct {
TensorInfo *tensors;
size_t size;
} TensorInfoArray;
TensorInfoArray *createTensorInfoArray(size_t count);
void destroyTensorInfoArray(TensorInfoArray *array);
TensorInfo *getTensorInfoArray(TensorInfoArray const *array, size_t index);
#ifdef __cplusplus
}
#endif
#endif