Created
July 30, 2023 09:12
-
-
Save ssdr/31cc6ef48650197b604169080101abd9 to your computer and use it in GitHub Desktop.
try luajit string.buffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local buffer = require("string.buffer") | |
local buf = buffer.new(1024) | |
print(buf:putstr("helloworld")) | |
buf:reset() | |
print(buf:putstr("helloworld")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment