I think adding string.pack
or any kind of packer right now is jumping the gun. My concern is that the Roblox API doesn’t play nice with binary strings in general. With few exceptions (like JSONEncode/Decode), passing a Lua string through the API leads to truncated null characters. DataStores, which encode in JSON, significantly inflate the length of non-ASCII bytes. Until this poor support for binary data is addressed, the usefulness of string.pack
or any such function is greatly reduced.
1 Like
Yeah I agree we need to improve binary data support across the board. I suspect in the future pack/unpack will be useful but I agree, it’s probably premature. They are also from Lua 5.3, we can wait until Lua 5.4 to see if they stay in tact or get deprecated or …
6 Likes
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.