I'm having an issue where fields in my .proto file with type 'double' do 
not get serialized and seem to cause the serialization process to halt and 
truncate the remaining message.  If I change from 'double' to 'float' 
then SerializeToString() and ParseFromString() work as expected.

Coding:   C++
Compiler:   Visual Studio 2019
Architecture selection:   amd64
Protobuf Library and protoc:   protobuf_x64-windows-static

syntax = "proto3";
package decodedBuff;
message Parameter {
    string metric_units = 1;
    string units = 2;
    double test1 = 3;
    double value = 4;
    int32 decode_type = 5;
    string source = 6;
}

// Serialize the message
static std::string buff;
parmList.SerializeToString(&buff);

-- 
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/0e841002-455e-4b98-8d35-9cd8d97af65bn%40googlegroups.com.

Reply via email to