summaryrefslogtreecommitdiff
path: root/tests/projects/other/bin2c/transform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-07-18 00:34:25 +0800
committerruki <[email protected]>2026-07-18 00:34:25 +0800
commit99bcdf969aa6ad79034f4689a5cf715a960658ca (patch)
tree434bd270b418bc96223760db0f9a0b42bc6f1ed7 /tests/projects/other/bin2c/transform.lua
parent063bae8898d09f1f999a6fb2ad7a139777ebb7d7 (diff)
add transform lua file support
Diffstat (limited to 'tests/projects/other/bin2c/transform.lua')
-rw-r--r--tests/projects/other/bin2c/transform.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/projects/other/bin2c/transform.lua b/tests/projects/other/bin2c/transform.lua
new file mode 100644
index 000000000..54cf1f394
--- /dev/null
+++ b/tests/projects/other/bin2c/transform.lua
@@ -0,0 +1,5 @@
+function main(inputfile, outputfile)
+ import("core.base.bytes")
+ local data = io.readfile(inputfile, {encoding = "binary"})
+ io.writefile(outputfile, data:reverse(), {encoding = "binary"})
+end