-
-
Notifications
You must be signed in to change notification settings - Fork 18
string_byte_at
CryoEagle edited this page Dec 26, 2018
·
10 revisions
Returns the raw byte value as a real value at a given position in the given string.
string_byte_at(str, pos)
Argument | Description |
---|---|
string str |
The string to check |
int pos |
The position to get the byte from |
Returns: int
int byte1 = string_byte_at("Hello, World!", 5);
This will set byte1 to the raw byte value of the sixth letter of "Hello World".
Back to strings