ezeio2:scriptref: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 1
  • ezeio2/scriptref/ispacked.txt
  • Last modified: 2019-09-02 21:39
  • by andreh