| 6 | #include "vendor/Soup/soup/base32.hpp" |
| 7 | |
| 8 | static int encode(lua_State* L) { |
| 9 | pluto_pushstring(L, soup::base32::encode(pluto_checkstring(L, 1), (bool)(lua_gettop(L) >= 2 ? lua_toboolean(L, 2) : true))); |
| 10 | return 1; |
| 11 | } |
| 12 | |
| 13 | static int decode(lua_State* L) { |
| 14 | pluto_pushstring(L, soup::base32::decode(pluto_checkstring(L, 1))); |
nothing calls this directly
no test coverage detected