We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在lua-resty-string中已经实现to_hex,不知能否加一个from_hex,更加高效实现hex到byte的转换? 谢谢 我现在使用gsub的方式:
function from_hex(s) return (s:gsub('..', function(cc) return string.char(tonumber(cc, 16)) end)) end
The text was updated successfully, but these errors were encountered:
最近看到了ndk.set_var.DIRECTIVE中有两个set_encode_hex 和 set_decode_hex,是不是因为这个,而没有在string库增加?
Sorry, something went wrong.
No branches or pull requests
在lua-resty-string中已经实现to_hex,不知能否加一个from_hex,更加高效实现hex到byte的转换?
谢谢
我现在使用gsub的方式:
The text was updated successfully, but these errors were encountered: