starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.75k stars 387 forks source link

请教:lua5.14 版本,某一个字段 int64类型 值过大如何按 string 获取??? #217

Closed bugwang closed 1 year ago

bugwang commented 2 years ago

请教:有了解的吗。对方返回的int64类型。 lua 要判断匹配

目前想到,值过大 ,可以按string 匹配。有了解的吗?

starwing commented 2 years ago

看文档,pb.option "int64_as_string"

bugwang @.***>于2022年8月31日 周三18:26写道:

请教:有了解的吗。对方返回的int64类型。 lua 要判断匹配

目前想到,值过大 ,可以按string 匹配。有了解的吗?

— Reply to this email directly, view it on GitHub https://github.com/starwing/lua-protobuf/issues/217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA36MZ7MDBD3LT3IH6DUSLV34XOBANCNFSM6AAAAAAQBHRGI4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- regards, Xavier Wang.

bugwang commented 2 years ago

thanks