MCPcopy Create free account
hub / github.com/alibaba/zvec / zvec_float_array_destroy

Function zvec_float_array_destroy

src/binding/c/c_api.cc:1083–1089  ·  view source on GitHub ↗

* @brief Destroy a float array and free all memory * @param array Float array to destroy (can be NULL) */

Source from the content-addressed store, hash-verified

1081 * @param array Float array to destroy (can be NULL)
1082 */
1083void zvec_float_array_destroy(zvec_float_array_t *array) {
1084 if (!array) return;
1085 if (array->data) {
1086 free((void *)array->data);
1087 }
1088 free(array);
1089}
1090
1091// Int64 array helper functions
1092zvec_int64_array_t *zvec_int64_array_create(size_t count) {

Callers 1

Calls

no outgoing calls

Tested by 1