- Reference
- Script reference
- Strings and buffers
ispacked
Tests a string for how it is stored.
Description#
ispacked( const string[] )Tests a string for how it is stored. See Pawn documentation about string packed/unpacked storage. By default all strings are packed in the ezeio.
Parameters#
string | reference to string to be tested |
Return value#
Returns 1 if the string is packed (single byte per character).
Return 0 if the string is using a cell (4 bytes) for each character.
Example usage#
new x;
new s{6} = "Hello";
x = ispacked(s);
// x is now 1Last updated Sep 2, 2019