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?

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/6a24b865-67b7-40be-8398-b8291431d3bfn%40googlegroups.com.

Reply via email to