ezeio2:scriptref:ispacked

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ezeio2:scriptref:ispacked [2019-06-15 18:02] andrehezeio2:scriptref:ispacked [2019-09-02 21:39] (current) andreh
Line 1: Line 1:
-===== Script reference ======+==== ispacked ====
  
-==== ispacked( string ) ==== +Tests a string for how it is stored.
- +
-Returns 1 if the string is packed.+
  
 === Description === === Description ===
Line 9: Line 7:
 <code>ispacked( const string[] )</code> <code>ispacked( const string[] )</code>
  
-Returns 1 if the string is packed (single byte per character). +Tests a string for how it is stored. See Pawn documentation about string packed/unpacked storageBy default all strings are packed in the ezeio.
- +
-Return 0 if the string is using a cell (4 bytes) for each character.+
  
 === Parameters === === Parameters ===
Line 19: Line 15:
 === Return value === === Return value ===
  
-This function returns the packed status of a string+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 === === Example usage ===
  • ezeio2/scriptref/ispacked.1560621773.txt.gz
  • Last modified: 2019-06-15 18:02
  • by andreh