• Getting size of util.Compress data?
    2 replies, posted
A couple questions regarding the utility function Compress() Is there a way to get the length of compressed data? On the wiki it mentions that it returns a string, so I can use string.len to get the size, assuming that the compressed data is null-terminated. So, if the correct method to get the data size is to use string.len, is it guaranteed that util.Compress returns null-terminated data?
Lua strings don't have to be null terminated.. len will work just fine :)
Then I've learned something new today. Thanks!
Sorry, you need to Log In to post a reply to this thread.