strpack - problem
#3

Why would you pack a string anyway?

Can someone explain the benefits of packing a string first and unpacking it afterwards, besides saving memory?
I know packed strings only consume 1 byte per character (8 bit), while unpacked strings consume 4 bytes per character (32 bit).

Perhaps you need packed strings for some DLL communication which only understands strings with 8-bit characters?
Other than that, I don't see a need to pack strings in a standard PAWN script.
Reply


Messages In This Thread
strpack - problem - by NickHaudMTA - 18.12.2014, 23:50
Re: strpack - problem - by Jefff - 19.12.2014, 01:24
Re: strpack - problem - by PowerPC603 - 19.12.2014, 08:33

Forum Jump:


Users browsing this thread: 2 Guest(s)