Need to encode using signed integer
gldeng opened this issue · 1 comments
gldeng commented
Signed integers are to be transmitted in sint64 or sint32 format. Otherwise, the decoded value will be half of the intended value.
hzz780 commented
https://imweb.io/topic/581a8eb02373d1aa606c8be7
https://github.com/dcodeIO/long.js
yep
When deal with int64.
Long.js is solution of Protobuf.js to solve the problem of int64 in javascript.