I am new to the gRPC implementation in C++ and wantd to see if there is any way of achieving something.
I have a low library in C that is performing some operations with Matrices. It saves the result in a pointer that was allocated dynamically in memory.
matrixDataA = (double *) malloc(sizeA*sizeof (double ));
//... some code fills MatrixA with data
// then manually copy the data to the protobuf
for(int i = 0; i < sizeA; i++){
matrixDataA[i] = reply->data_c()[i];
}
Would there be any way of copying my data in the *double pointer to the reply->data_c(), assuming data_c is a repeated double field?