hv_size_t cPack_init(ControlPack *o, int n) { hv_size_t numBytes = msg_getByteSize(n); o->msg = (HvMessage *) hv_malloc(numBytes); msg_init(o->msg, n, 0); for (int i = 0; i < n; ++i) { msg_setFloat(o->msg, i, 0.0f); } return numBytes; }
hv_size_t hv_msg_getByteSize (hv_uint32_t numElements) { return msg_getByteSize(numElements); }