Added a passthrough-to-data-card version of the base64 library. Compatible with the normal implementation, in theory faster, and smaller as far as code goes.
This commit is contained in:
parent
516e5e7cda
commit
3d89bbd987
8
modules/library/base64-passthrough.lua
Normal file
8
modules/library/base64-passthrough.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
do
|
||||||
|
function b64(data)
|
||||||
|
component.invoke(component.list("data")(),"encode64",data)
|
||||||
|
end
|
||||||
|
|
||||||
|
function ub64(data)
|
||||||
|
component.invoke(component.list("data")(),"decode64",data)
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user