Skip to main content

Module string

Module string 

Source
Expand description

AMX strings: cell vector with 0 terminator.

Pawn supports two binary representations:

  • Unpacked: 1 character per cell (4x memory usage, default).
  • Packed: 4 characters packed into each i32 cell (bits 31..24, 23..16, 15..8, 7..0). The first cell signals the mode if its value exceeds [MAX_UNPACKED]; the SDK detects it automatically in to_bytes.

Structs§

AmxString
Native Pawn string — packed or unpacked.