MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / encode

Function encode

src/lbase32.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "vendor/Soup/soup/base32.hpp"
7
8static 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
13static int decode(lua_State* L) {
14 pluto_pushstring(L, soup::base32::decode(pluto_checkstring(L, 1)));

Callers

nothing calls this directly

Calls 3

pluto_pushstringFunction · 0.85
lua_gettopFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected