19.12.2014, 08:33
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.
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.