-
Notifications
You must be signed in to change notification settings - Fork 401
Closed
Labels
Description
我们这边早起就开始使用这个pb库,最近因为和外部对接发现老版本uint64解析出现偏差,故升级了lib(升级到当前最新版),但是发现原来的时间戳解析前面都加了个#,所有的长度超过12的数字类型的数据都被动加了#,请问是否有开关设置默认数字类型解析。文档中也有说明
Note: The string returned by int64_as_string or int64_as_hexstring will prefix a '#' character. Because Lua may convert between string with number, prefix a '#' makes Lua return the string as-is.
all routines in all module accepts '#' prefix string/hex string as arguments regardless of the option setting.
这个说是不是就是int64_as_string和int64_as_number的设置实际上是没有必要的。