edo888
edo888
Can we use this inside tokio? Thanks!
You can possibly define the order you want in __order metatable and use the forked version: https://github.com/edo888/lua-cjson ``` local cjson = require "cjson.safe" cjson.decode_save_key_order(true) local json = {name="yhc",age=40,birthday="1985"} setmetatable(json, {...
Does this look good? ``` local str_type = ffi.typeof("uint8_t[?]") local counter = 0 local BUF_MAX_REUSE = 10000 local BUF_MAX_LEN = 1024 local hex_buf = ffi_new(str_type, BUF_MAX_LEN) function _M.to_hex(s) local len...
I'm worried about burning out RAM when using to_hex heavily, so I'm asking your opinion about it. Is it a good idea or it should be fine? Thanks!