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..

有帮助吗?

解决方案

The documentation clearly lists the available scalar types.

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top