I'm using protocol buffers over zeroMQ to send graph data from C++ to a Javascript frontend:
message RawData
{
Type type = 1;
bytes data = 2;
}
when i call RawData.getData() i get something like this (usually much longer):
Data: 0, 0, 0, 0, 0, 0, 0, 0, 64, 1, 118, 62, 112, 8, 12, 63
This is two 8 bytes numbers, where each index in the array is 1 byte.
How do I convert this into double representation in Javascript?
EDIT:
i ended up changing the protocol buffer message to repeated double data = 2;
this removed the need for conversion