30.08.2010, 14:48
(
Последний раз редактировалось RSX; 30.08.2010 в 15:20.
)
I finally read about about packed strings in pawn(-o), so i'm going to ask for some tips about speed, like is it's faster, slower, or it may change by lenght or total needed (Packed strings are strings, that splits "default" bytes by 1 byte for each charater, actually making it an char, and i guess before 64 bit widespread it was an short in C too?
So anyone could maybe make a normal speed tester, i'm not good at thinking how to test these.
Syntax for your usage is:
Defining:
Filling:
Using example:
By using indexes like default, you'll get 4 chars instantly:
Info from impossibly long pawn description - pawn language guide
So anyone could maybe make a normal speed tester, i'm not good at thinking how to test these.
Syntax for your usage is:
Defining:
pawn Код:
new string[size char];
pawn Код:
string=!"text here";
pawn Код:
print(string);
pawn Код:
print(string[0]); // By filled data it would give "text"