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

Function zvec_byte_array_destroy

src/binding/c/c_api.cc:1050–1056  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1048 * @param array Byte array to destroy (can be NULL)
1049 */
1050void zvec_byte_array_destroy(zvec_mutable_byte_array_t *array) {
1051 if (!array) return;
1052 if (array->data) {
1053 free(array->data);
1054 }
1055 free(array);
1056}
1057
1058/**
1059 * @brief Create a float array with given count

Callers 1

Calls

no outgoing calls

Tested by 1