I haven't found any occurances of this in any of the files but I decided to keep it if some 3rd party code references it.
Also this is much better to do because it has a minimal GC footprint, unlike bytesToString which creates a string for each character and all of their concactinations which is very laggy.
I agree with you that string.char(table.unpack(arr)) would be better in most cases, however as lua only supports a maximum of 200 function arguments, this will fail if we have more than 200 bytes.
I haven't found any occurances of this in any of the files but I decided to keep it if some 3rd party code references it.
Also this is much better to do because it has a minimal GC footprint, unlike
bytesToString
which creates a string for each character and all of their concactinations which is very laggy.