* @brief Destroy a byte array and free all memory * @param array Byte array to destroy (can be NULL) */
| 1048 | * @param array Byte array to destroy (can be NULL) |
| 1049 | */ |
| 1050 | void 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 |
no outgoing calls