Search code examples
c++protocol-bufferslong-long

How to declare an unsigned long long in Protobuf?


What is the right way to declare an unsigned LongLong (unsigned __int64) in Protobuf, so it would be used for both, Android and Windows?

EDIT: I thought that I might need to use to variables, each holds a uint64, but I wasn't sure if this is the correct way to go.

UPDATE

I used uint64 in the protobuf file and compile it. the result in the cpp file was unsigned __int64. I got confused because in the docs they say it is mapped to long..


Solution

  • The documentation clearly lists the available scalar types.

    Not sure exactly what you're after, but perhaps uint64?